Skip to content

Commit 799f837

Browse files
Mika TervonenMika Tervonen
authored andcommitted
Added address check for Whiteboard address ADD
Prevent calling Whiteboard modify without valid address
1 parent 0b6caa3 commit 799f837

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/6LoWPAN/ws/ws_bbr_api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ static void wisun_dhcp_address_remove_cb(int8_t interfaceId, uint8_t *targetAddr
529529
{
530530
(void) interfaceId;
531531
(void) prefix_info;
532-
whiteboard_os_modify(targetAddress, REMOVE);
532+
if (targetAddress) {
533+
whiteboard_os_modify(targetAddress, REMOVE);
534+
}
533535
}
534536

535537
static void ws_bbr_dhcp_server_start(protocol_interface_info_entry_t *cur, uint8_t *global_id, uint32_t dhcp_address_lifetime)

0 commit comments

Comments
 (0)