From 25287d6f7e687c77704816e565529960c65e3250 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 2 Mar 1999 17:20:07 +0000 Subject: Don't try to install static routes to disconnected neighbors. --- proto/static/static.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3