diff options
Diffstat (limited to 'proto/static')
-rw-r--r-- | proto/static/static.c | 3 |
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); |