diff options
Diffstat (limited to 'zebra/connected.c')
-rw-r--r-- | zebra/connected.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index dcb0b875..5d1c6b66 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -162,7 +162,8 @@ connected_down_ipv4 (struct interface *ifp, struct connected *ifc) p.family = AF_INET; p.prefixlen = addr->prefixlen; - if (ifc_pointopoint (ifc)) + /* Point-to-point check. */ + if (dest && ifc_pointopoint (ifc)) p.prefix = dest->prefix; else p.prefix = addr->prefix; |