Skip to content

Commit

Permalink
added check for parent info before processing child update (ARMmbed#1577
Browse files Browse the repository at this point in the history
)
  • Loading branch information
deepakvenugopal authored Feb 19, 2018
1 parent 96e86b6 commit c18d1fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/6LoWPAN/Thread/thread_mle_message_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,12 @@ static void thread_parse_child_update_response(protocol_interface_info_entry_t *
uint8_t status;
bool leader_data_received;

if (cur->thread_info->thread_endnode_parent == NULL) {
return;
}

tr_debug("Child Update Response");

//mle_service_buffer_find
leader_data_received = thread_leader_data_parse(mle_msg->data_ptr, mle_msg->data_length, &leaderData);
entry_temp = mle_class_get_entry_by_ll64(cur->id, linkMargin, mle_msg->packet_src_address, false);
Expand Down

0 comments on commit c18d1fd

Please sign in to comment.