summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);