diff options
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index cb4645c2f1..dcbc5a3b95 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1770,6 +1770,9 @@ ipv6_address_configured (struct interface *ifp) struct connected *connected; struct listnode *node; + if (!ifp) + return 0; + for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, connected)) if (CHECK_FLAG (connected->conf, ZEBRA_IFC_REAL) && (connected->address->family == AF_INET6)) return 1; |
