Fix double free.

PR:		kern/163089
Submitted by:	Herbie Robinson <Herbie.Robinson stratus.com>
This commit is contained in:
Gleb Smirnoff 2011-12-07 13:37:42 +00:00
parent 6f4cbf7cb3
commit 6d18ea8ff9

View File

@ -3090,7 +3090,6 @@ mld_dispatch_packet(struct mbuf *m)
m0 = mld_v2_encap_report(ifp, m);
if (m0 == NULL) {
CTR2(KTR_MLD, "%s: dropped %p", __func__, m);
m_freem(m);
IP6STAT_INC(ip6s_odropped);
goto out;
}