]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Don't try to install static routes to disconnected neighbors.
authorMartin Mares <mj@ucw.cz>
Tue, 2 Mar 1999 17:20:07 +0000 (17:20 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 2 Mar 1999 17:20:07 +0000 (17:20 +0000)
proto/static/static.c

index a0b1c5ac9fb7ace5c0a70966723ac8797530b9ba..873abe3db4d998863f0fa9bdf18132eb5ddfc5a4 100644 (file)
@@ -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);