Free mbuf in case of error.

MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2013-12-17 10:53:17 +00:00
parent 4f1c67053f
commit 569aad57d2

View File

@ -163,6 +163,7 @@ send_output(struct mbuf *m, struct ifnet *ifp, int direction)
nd6_ra_input(m, sizeof(struct ip6_hdr), icmp6len);
break;
default:
m_freem(m);
return (ENOSYS);
}
return (0);