]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Fix assert in ospf_api where interface is not configured in ospf.
authorpaul <paul>
Fri, 21 Mar 2003 15:11:58 +0000 (15:11 +0000)
committerpaul <paul>
Fri, 21 Mar 2003 15:11:58 +0000 (15:11 +0000)
ospfd/ospf_apiserver.c

index fc0713b09ddadf8606f39387268beb888ef51c44..90ca230f53abe95d2a9fdc679e99dce93d82dde1 100644 (file)
@@ -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) {