From: paul Date: Fri, 21 Mar 2003 15:11:58 +0000 (+0000) Subject: Fix assert in ospf_api where interface is not configured in ospf. X-Git-Tag: frr-2.0-rc1~4128 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=2be32b7bc1bcf95b95f8b3b9fd8e65e8d45336f3;p=mirror%2Ffrr.git Fix assert in ospf_api where interface is not configured in ospf. --- diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c index fc0713b09d..90ca230f53 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) {