summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-07-07 19:58:45 +0000
committerume <ume@FreeBSD.org>2001-07-07 19:58:45 +0000
commitbf2c541b2ed65dea3a711f2917589739dacef59e (patch)
tree905b5df1442df6794ca634dcedcd3aa82247f9d6
parent4d2ef515ad618dc8230813a5d4c7f47260edfbde (diff)
downloadFreeBSD-src-bf2c541b2ed65dea3a711f2917589739dacef59e.zip
FreeBSD-src-bf2c541b2ed65dea3a711f2917589739dacef59e.tar.gz
The m_free call in the ip6_fw_ctl_ptr == NULL case apparently
tries to free uninitialized mbuf. This was my mistake during recent KAME merge. This part is for *BSD other than FreeBSD. Submitted by: Alexander N. Kabaev <ak03@gte.com>
-rw-r--r--sys/netinet6/ip6_output.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index d0d072e..9a6c61e 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -1669,8 +1669,6 @@ do { \
if (ip6_fw_ctl_ptr == NULL)
{
- if (m)
- (void)m_free(m);
return EINVAL;
}
error = (*ip6_fw_ctl_ptr)(optname, mp);
OpenPOWER on IntegriCloud