Check return value.
This commit is contained in:
parent
784ca301f8
commit
82a7c93b47
1 changed files with 3 additions and 1 deletions
|
@ -1193,7 +1193,9 @@ rpl_process_dio(uip_ipaddr_t *from, rpl_dio_t *dio)
|
|||
PRINTF("\n");
|
||||
} else {
|
||||
p = rpl_find_parent(previous_dag, from);
|
||||
rpl_move_parent(previous_dag, dag, p);
|
||||
if(p != NULL) {
|
||||
rpl_move_parent(previous_dag, dag, p);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(p->rank == dio->rank) {
|
||||
|
|
Loading…
Reference in a new issue