summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2015-12-14 19:40:27 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2015-12-14 19:40:27 +0000
commitca208d065c064692a334dff8612b7049475d4214 (patch)
tree4677459bec5e4ce3b31912441ae2da6895f58164 /zebra/interface.c
parent3ffe142a3ad4fb0f5cc02b88a563dab45295b52a (diff)
zebra: Crash upon disabling a link
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-8514
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c3
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;