Commit 290043c2 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV6]: Fix default router selection in some cases.

parent 2e3d689f
......@@ -253,13 +253,15 @@ static struct rt6_info *rt6_best_dflt(struct rt6_info *rt, int oif)
}
}
for (sprt = rt;
!match && sprt && sprt != rt6_dflt_pointer;
!match && sprt;
sprt = sprt->u.next) {
if (sprt->u.dst.obsolete <= 0 &&
sprt->u.dst.error == 0) {
match = sprt;
break;
}
if (sprt == rt6_dflt_pointer)
break;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment