summaryrefslogtreecommitdiffstats
path: root/proto/static
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-02 18:20:07 +0100
committerMartin Mares <mj@ucw.cz>1999-03-02 18:20:07 +0100
commit25287d6f7e687c77704816e565529960c65e3250 (patch)
tree0f6c665a31d79504439f80961005cba54693addb /proto/static
parenteab0d1e5e5e89d82e435d224f5faf1a16524c69c (diff)
downloadbird-25287d6f7e687c77704816e565529960c65e3250.tar
bird-25287d6f7e687c77704816e565529960c65e3250.zip
Don't try to install static routes to disconnected neighbors.
Diffstat (limited to 'proto/static')
-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 a0b1c5a..873abe3 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);