plugged a possible memory leak

Obtained from: KAME
MFC after: 1 day
This commit is contained in:
SUZUKI Shinsuke 2005-09-16 01:42:50 +00:00
parent 3b87a552e4
commit 9689258fb5

View File

@ -595,7 +595,7 @@ nd6_na_input(m, off, icmp6len)
taddr6 = nd_na->nd_na_target;
if (in6_setscope(&taddr6, ifp, NULL))
return; /* XXX: impossible */
goto bad; /* XXX: impossible */
if (IN6_IS_ADDR_MULTICAST(&taddr6)) {
nd6log((LOG_ERR,