summaryrefslogtreecommitdiff
path: root/ospfd/ospf_apiserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_apiserver.c')
-rw-r--r--ospfd/ospf_apiserver.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index fc0713b0..90ca230f 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -2131,7 +2131,12 @@ ospf_apiserver_del_if (struct interface *ifp)
ifp->ifindex);
oi = ospf_apiserver_if_lookup_by_ifp (ifp);
- assert (oi);
+
+ if (!oi) {
+ /* This interface is known to Zebra but not to OSPF daemon
+ anymore. No need to tell clients about it */
+ return 0;
+ }
/* Interface deleted, tell clients about it */
if (listcount (apiserver_list) > 0) {