Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2009 01:22:12 +0000 (UTC)
From:      Bruce M Simpson <bms@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r190354 - head/sys/netinet
Message-ID:  <200903240122.n2O1MCts027541@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bms
Date: Tue Mar 24 01:22:12 2009
New Revision: 190354
URL: http://svn.freebsd.org/changeset/base/190354

Log:
  Don't call m_freem() after ip_output(), as it always consumes
  the mbuf chain provided to it.
  
  Found by:	Pierre Guinoiseau

Modified:
  head/sys/netinet/igmp.c

Modified: head/sys/netinet/igmp.c
==============================================================================
--- head/sys/netinet/igmp.c	Tue Mar 24 01:18:35 2009	(r190353)
+++ head/sys/netinet/igmp.c	Tue Mar 24 01:22:12 2009	(r190354)
@@ -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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903240122.n2O1MCts027541>