summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul>2003-03-21 15:11:58 +0000
committerpaul <paul>2003-03-21 15:11:58 +0000
commit7800f01943b7e39fe137218d0b8f205ceff011ad (patch)
tree4ae9260152eabfeeadd6a5d57253f49c407db06d
parent2455f47d5806c9c0647b8296e9c55657b50d0145 (diff)
downloadquagga-7800f01943b7e39fe137218d0b8f205ceff011ad.tar.bz2
quagga-7800f01943b7e39fe137218d0b8f205ceff011ad.tar.xz
Fix assert in ospf_api where interface is not configured in ospf.
-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) {