Skip to content

Commit

Permalink
Update Thread child id request timeout handling (ARMmbed#1715)
Browse files Browse the repository at this point in the history
Do not use variable after deleting it.
  • Loading branch information
Arto Kinnunen committed May 24, 2018
1 parent 3e8df0a commit 0b7f9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/6LoWPAN/Thread/thread_host_bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,8 +1026,9 @@ static bool thread_child_id_req_timeout(int8_t interface_id, uint16_t msgId, boo

entry_temp = mle_class_get_entry_by_ll64(cur->id, scanned_parent->linkMarginToParent, ll64, false, NULL);
if (entry_temp) {
bool my_parent = thread_check_is_this_my_parent(cur, entry_temp);
mle_class_remove_entry(cur->id, entry_temp);
if (thread_check_is_this_my_parent(cur, entry_temp)) {
if (my_parent) {
tr_debug("No parent resp - any-attach");
thread_bootstrap_connection_error(interface_id, CON_ERROR_NETWORK_ATTACH_FAIL, NULL);
goto exit;
Expand Down

0 comments on commit 0b7f9fe

Please sign in to comment.