summaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_mroute.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-03-24 20:53:50 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-03-24 20:53:50 +0000
commitcf56e293fb9663924c8dba3d5b50702a40899a41 (patch)
tree8cca6303eca1790c5cff974ae0e70f07a3fbd125 /sys/netinet6/ip6_mroute.c
parente0e68c58c3e44c565d33f4a9e2c9dae013bf1f07 (diff)
double m_free() - niklas@openbsd
Diffstat (limited to 'sys/netinet6/ip6_mroute.c')
-rw-r--r--sys/netinet6/ip6_mroute.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index 7ca2e148db2..149fbb6e864 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_mroute.c,v 1.19 2002/03/14 01:27:12 millert Exp $ */
+/* $OpenBSD: ip6_mroute.c,v 1.20 2002/03/24 20:53:49 itojun Exp $ */
/* $KAME: ip6_mroute.c,v 1.45 2001/03/25 08:38:51 itojun Exp $ */
/*
@@ -1555,10 +1555,8 @@ register_send(ip6, mif, m)
if (i > len)
i = len;
mm = m_pullup(mm, i);
- if (mm == NULL){
- m_freem(mm);
+ if (mm == NULL)
return ENOBUFS;
- }
/* TODO: check it! */
mm->m_pkthdr.len = len + sizeof(struct ip6_hdr);