Don't call m_freem() after ip_output(), as it always consumes

the mbuf chain provided to it.

Found by:	Pierre Guinoiseau
This commit is contained in:
Bruce M Simpson 2009-03-24 01:22:12 +00:00
parent aa28501a67
commit 5b35d05538
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190354

View file

@ -3451,7 +3451,6 @@ igmp_intr(struct mbuf *m)
error = ip_output(m0, ipopts, NULL, 0, &imo, NULL);
if (error) {
CTR3(KTR_IGMPV3, "%s: ip_output(%p) = %d", __func__, m0, error);
m_freem(m0);
goto out;
}