mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
mcast: fix leaked igmp packets on multicast cleanup
When we release a multicast address (e.g. on interface shutdown) we may
still have packets queued in inm_scq. We have to free those, or we'll
leak memory.
Reviewed by: glebius
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D43033
This commit is contained in:
parent
48570316b7
commit
e81800f6a8
1 changed files with 1 additions and 0 deletions
|
|
@ -1181,6 +1181,7 @@ inm_purge(struct in_multi *inm)
|
|||
free(ims, M_IPMSOURCE);
|
||||
inm->inm_nsrc--;
|
||||
}
|
||||
mbufq_drain(&inm->inm_scq);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue