Skip to content

Commit c09d38a

Browse files
author
Jarkko Paso
authored
Merge pull request ARMmbed#1925 from ARMmbed/fix_protocol_if_fhss
WS/Protocol: Fixed getting interface pointer using FHSS api
2 parents 883eb46 + f779fad commit c09d38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/NWK_INTERFACE/protocol_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ protocol_interface_info_entry_t *protocol_stack_interface_info_get_by_fhss_api(c
778778
{
779779
#ifdef HAVE_WS
780780
ns_list_foreach(protocol_interface_info_entry_t, cur, &protocol_interface_info_list) {
781-
if (cur->ws_info->fhss_api == fhss_api) {
781+
if (cur->ws_info && (cur->ws_info->fhss_api == fhss_api)) {
782782
return cur;
783783
}
784784
}

0 commit comments

Comments
 (0)