summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-06-24 20:49:55 +0200
committerGitHub <noreply@github.com>2022-06-24 20:49:55 +0200
commit9a18e713148a58044c82f699735b1614cff67e98 (patch)
treefe479919fc5ef4cb18d22f0d97a4aee16e4572f0 /pimd
parentMerge pull request #11472 from panlinux/obsolete-egrep (diff)
parentpimd: fix pim interface deletion flow (diff)
downloadfrr-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.c4
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);