diff options
author | bms <bms@FreeBSD.org> | 2009-03-24 01:22:12 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2009-03-24 01:22:12 +0000 |
commit | 635596f1dbc16eddb2609ccdf02ae83ed880e55b (patch) | |
tree | 08663183e00c3992a8bf5163e2dee5c351b41657 /sys/netinet | |
parent | a8803ad8ee50fab63795a1d0c2ffc333745a5fc9 (diff) | |
download | FreeBSD-src-635596f1dbc16eddb2609ccdf02ae83ed880e55b.zip FreeBSD-src-635596f1dbc16eddb2609ccdf02ae83ed880e55b.tar.gz |
Don't call m_freem() after ip_output(), as it always consumes
the mbuf chain provided to it.
Found by: Pierre Guinoiseau
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/igmp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 5952112..1488a72 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -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; } |