Fix error in datalink/bvlc.c (#288)

This commit is contained in:
Mikhail Antropov
2022-05-30 05:00:37 +03:00
committed by GitHub
parent 08a12769bd
commit 810bfefb34
2 changed files with 1 additions and 11 deletions
-10
View File
@@ -2759,16 +2759,6 @@ int bvlc_foreign_device_bbmd_host_address_decode(uint8_t *apdu,
}
return BACNET_STATUS_REJECT;
}
/* bbmd-address [0] BACnetHostNPort - closing */
if (!decode_is_closing_tag_number(&apdu[len++], 0)) {
if (error_code) {
*error_code = ERROR_CODE_REJECT_INVALID_TAG;
}
return BACNET_STATUS_REJECT;
}
if (len > apdu_len) {
return BACNET_STATUS_REJECT;
}
return apdu_len;
}
+1 -1
View File
@@ -820,7 +820,7 @@ static void test_BVLC_BBMD_Address(void)
{
uint8_t apdu[480] = { 0 };
uint16_t apdu_len = 0;
uint16_t test_apdu_len = 0;
int16_t test_apdu_len = 0;
uint16_t i = 0;
BACNET_IP_ADDRESS bbmd_address;
BACNET_IP_ADDRESS test_bbmd_address;