mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-31 22:29:47 +00:00
Check return value.
This commit is contained in:
parent
784ca301f8
commit
82a7c93b47
@ -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 New Issue
Block a user