summaryrefslogtreecommitdiffstats
path: root/sysdep/bsd/krt-sock.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-09-24 19:08:14 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-09-24 19:08:14 +0200
commit2d507e64b7d7029906aac30dbea317795b5339de (patch)
treed6c06aa6b73b8a5ba33957009eed6789fc32dc69 /sysdep/bsd/krt-sock.c
parent54fe0d9230be440d9f627ff7f94a202e6117e1b9 (diff)
downloadbird-2d507e64b7d7029906aac30dbea317795b5339de.tar
bird-2d507e64b7d7029906aac30dbea317795b5339de.zip
Do not allow gateway routes with NULL iface.
Diffstat (limited to 'sysdep/bsd/krt-sock.c')
-rw-r--r--sysdep/bsd/krt-sock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index 2e8f1b8..29ebe20 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -339,7 +339,10 @@ krt_read_rt(struct ks_msg *msg, struct krt_proto *p, int scan)
if (ng && ng->scope)
a.iface = ng->iface;
else
- log(L_WARN "Kernel told us to use non-neighbor %I for %I/%d", igate, 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;
+ }
a.dest = RTD_ROUTER;
a.gw = igate;