diff options
-rw-r--r-- | sys/netinet6/ip6_mroute.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c index d50c55f..e235e5e0 100644 --- a/sys/netinet6/ip6_mroute.c +++ b/sys/netinet6/ip6_mroute.c @@ -1542,10 +1542,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); |