Page MenuHomeFreeBSD

D62078.1795946708.diff
No OneTemporary

Authored By
Unknown
Size
658 B
Referenced Files
None
Subscribers
None

D62078.1795946708.diff

diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -2320,6 +2320,7 @@
struct ifnet *ifp = ifa->ifa_ifp;
struct carp_if *cif = ifp->if_carp;
struct carp_softc *sc = ifa->ifa_carp;
+ sa_family_t af = ifa->ifa_addr->sa_family;
int i, index;
KASSERT(sc != NULL, ("%s: %p not attached", __func__, ifa));
@@ -2353,7 +2354,6 @@
}
carp_ifa_delroute(ifa);
- carp_multicast_cleanup(cif, ifa->ifa_addr->sa_family);
ifa->ifa_carp = NULL;
ifa_free(ifa);
@@ -2367,6 +2367,8 @@
else
CARP_UNLOCK(sc);
+ carp_multicast_cleanup(cif, af);
+
if (!keep_cif)
CIF_FREE(cif);

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 29, 10:05 AM (6 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42033533
Default Alt Text
D62078.1795946708.diff (658 B)

Event Timeline