1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Do not allow gateway routes with NULL iface.

This commit is contained in:
Ondrej Zajicek
2009-09-24 19:08:14 +02:00
parent 54fe0d9230
commit 2d507e64b7
3 changed files with 12 additions and 5 deletions

View File

@@ -686,8 +686,10 @@ nl_parse_route(struct nlmsghdr *h, int scan)
if (ng && ng->scope)
ra.iface = ng->iface;
else
/* FIXME: Remove this warning? Handle it somehow... */
log(L_WARN "Kernel told us to use non-neighbor %I for %I/%d", ra.gw, net->n.prefix, net->n.pxlen);
{
log(L_WARN "Kernel told us to use non-neighbor %I for %I/%d", ra.gw, net->n.prefix, net->n.pxlen);
return;
}
}
else
{