Revert "mcast: fix memory leak in imf_purge()"
authorKristof Provost <kp@FreeBSD.org>
Tue, 12 Dec 2023 18:20:03 +0000 (19:20 +0100)
committerKristof Provost <kp@FreeBSD.org>
Thu, 14 Dec 2023 21:05:34 +0000 (22:05 +0100)
commitc196e43243b83840cc9f3d1dadc7dacb3b0f556f
treebff8c186776c18ff121b2753f3c8bda39e8657b9
parent0bc82e4fbbe9d1eb72b6be512ff92a4908f85fef
Revert "mcast: fix memory leak in imf_purge()"

This reverts commit fa03d37432caf17d56a931a9e6f5d9b06f102c5b.

This commit caused us to not send IGMP leave messages if the inpcb went
away. In other words: we freed pending packets whenever the socket
closed rather than when the interface (or address) goes away.

Reviewed by: glebius
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D43032
sys/netinet/in_mcast.c