mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-02 16:41:55 +00:00
Fix assert in ospf_api where interface is not configured in ospf.
This commit is contained in:
parent
ac7c4bb6f8
commit
2be32b7bc1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user