MFC r280236:

To avoid a possible race, release the reference to ifa after return
  from nd6_dad_na_input().
This commit is contained in:
ae 2015-03-26 18:44:59 +00:00
parent ad6d8839ca
commit 159c9364d9

View File

@ -700,8 +700,8 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len)
*/
if (ifa
&& (((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_TENTATIVE)) {
ifa_free(ifa);
nd6_dad_na_input(ifa);
ifa_free(ifa);
goto freeit;
}