diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2022-06-24 20:49:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 20:49:55 +0200 |
commit | 9a18e713148a58044c82f699735b1614cff67e98 (patch) | |
tree | fe479919fc5ef4cb18d22f0d97a4aee16e4572f0 /pimd | |
parent | Merge pull request #11472 from panlinux/obsolete-egrep (diff) | |
parent | pimd: fix pim interface deletion flow (diff) | |
download | frr-9a18e713148a58044c82f699735b1614cff67e98.tar.xz frr-9a18e713148a58044c82f699735b1614cff67e98.zip |
Merge pull request #11475 from patrasar/pim_if_delete
pimd: fix pim interface deletion flow
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_iface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 4e92a2c5d..ddfa2187d 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -213,8 +213,8 @@ void pim_if_delete(struct interface *ifp) #if PIM_IPV == 4 igmp_sock_delete_all(ifp); #endif - - pim_neighbor_delete_all(ifp, "Interface removed from configuration"); + if (pim_ifp->pim_sock_fd >= 0) + pim_sock_delete(ifp, "Interface removed from configuration"); pim_if_del_vif(ifp); |