diff options
author | paul <paul> | 2003-03-21 15:11:58 +0000 |
---|---|---|
committer | paul <paul> | 2003-03-21 15:11:58 +0000 |
commit | 7800f01943b7e39fe137218d0b8f205ceff011ad (patch) | |
tree | 4ae9260152eabfeeadd6a5d57253f49c407db06d | |
parent | 2455f47d5806c9c0647b8296e9c55657b50d0145 (diff) | |
download | quagga-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.c | 7 |
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) { |