diff options
author | paul <paul> | 2003-03-21 15:11:58 +0000 |
---|---|---|
committer | paul <paul> | 2003-03-21 15:11:58 +0000 |
commit | 2be32b7bc1bcf95b95f8b3b9fd8e65e8d45336f3 (patch) | |
tree | b265a5555b186d674e903f9a84eb10637e739d0e | |
parent | ac7c4bb6f8a471561e62730c72c0b6cd0eb283e8 (diff) |
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) { |