rpl_select_parent: Only check parents belonging to the given dag

This commit is contained in:
Laurent Deru 2014-04-18 11:39:33 +02:00
parent 49bf7cc241
commit 79537a6dd7

View File

@ -712,7 +712,7 @@ best_parent(rpl_dag_t *dag)
p = nbr_table_head(rpl_parents);
while(p != NULL) {
if(p->rank == INFINITE_RANK) {
if(p->dag != dag || p->rank == INFINITE_RANK) {
/* ignore this neighbor */
} else if(best == NULL) {
best = p;