summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-02 17:20:07 +0000
committerMartin Mares <mj@ucw.cz>1999-03-02 17:20:07 +0000
commit25287d6f7e687c77704816e565529960c65e3250 (patch)
tree0f6c665a31d79504439f80961005cba54693addb
parenteab0d1e5e5e89d82e435d224f5faf1a16524c69c (diff)
Don't try to install static routes to disconnected neighbors.
-rw-r--r--proto/static/static.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index a0b1c5ac..873abe3d 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -73,7 +73,8 @@ static_start(struct proto *p)
r->chain = n->data;
n->data = r;
r->neigh = n;
- static_install(p, r, n->iface);
+ if (n->iface)
+ static_install(p, r, n->iface);
}
else
log(L_ERR "Static route destination %I is invalid. Ignoring.\n", r->via);