Skip to content

Commit c18d1fd

Browse files
added check for parent info before processing child update (#1577)
1 parent 96e86b6 commit c18d1fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/Thread/thread_mle_message_handler.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,12 @@ static void thread_parse_child_update_response(protocol_interface_info_entry_t *
763763
uint8_t status;
764764
bool leader_data_received;
765765

766+
if (cur->thread_info->thread_endnode_parent == NULL) {
767+
return;
768+
}
769+
766770
tr_debug("Child Update Response");
771+
767772
//mle_service_buffer_find
768773
leader_data_received = thread_leader_data_parse(mle_msg->data_ptr, mle_msg->data_length, &leaderData);
769774
entry_temp = mle_class_get_entry_by_ll64(cur->id, linkMargin, mle_msg->packet_src_address, false);

0 commit comments

Comments
 (0)