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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259503

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);