Skip to content

Commit 1ec7a84

Browse files
author
Arto Kinnunen
committed
Fix issues found by coverity
Fix issues CID:322884 and CID:322885.
1 parent 5fe7120 commit 1ec7a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/6LoWPAN/Thread/thread_extension_bbr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ static int thread_border_router_pbbr_nw_data_register(thread_pbbr_t *this)
10871087
return -1;
10881088
}
10891089

1090-
if (!addr_is_ipv6_unspecified(this->domain_prefix)) {
1090+
if (memcmp(this->domain_prefix, ADDR_UNSPECIFIED, 8) != 0) {
10911091
thread_border_router_info_t br_info = {0};
10921092
br_info.P_on_mesh = true;
10931093
br_info.stableData = true;
@@ -1443,7 +1443,7 @@ int thread_extension_bbr_prefix_set(int8_t interface_id, uint8_t *prefix)
14431443
return 0;
14441444
}
14451445

1446-
if (!addr_is_ipv6_unspecified(this->domain_prefix)) {
1446+
if (memcmp(this->domain_prefix, ADDR_UNSPECIFIED, 8) != 0) {
14471447
thread_border_router_info_t br_info = {0};
14481448
br_info.P_on_mesh = true;
14491449
br_info.stableData = true;

0 commit comments

Comments
 (0)