Skip to content

Commit 0d655ed

Browse files
author
Tero Heinonen
authored
Update MLE receiver in Child ID req timeout error (#1634)
When Child ID request times out and there is no route to leader, attaching is restarted. MLE receiver handler must be updated to avoid released thread_attach_scanned_parent pointer usage if Child ID response is received after this.
1 parent 2378dad commit 0d655ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/6LoWPAN/Thread/thread_host_bootstrap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,10 @@ static bool thread_child_id_req_timeout(int8_t interface_id, uint16_t msgId, boo
10371037
cur->thread_info->releaseRouterId = false;
10381038

10391039
cur->nwk_bootstrap_state = ER_BOOTSRAP_DONE;
1040-
mle_service_interface_receiver_handler_update(cur->id, thread_general_mle_receive_cb);
10411040

10421041
exit:
1042+
mle_service_interface_receiver_handler_update(cur->id, thread_general_mle_receive_cb);
1043+
10431044
ns_dyn_mem_free(cur->thread_info->thread_attach_scanned_parent);
10441045
cur->thread_info->thread_attach_scanned_parent = NULL;
10451046

0 commit comments

Comments
 (0)