diff options
author | ae <ae@FreeBSD.org> | 2015-03-26 18:44:59 +0000 |
---|---|---|
committer | ae <ae@FreeBSD.org> | 2015-03-26 18:44:59 +0000 |
commit | 159c9364d9bd6b7e517fb24e51ea68177e1a732c (patch) | |
tree | 59dcbae08851f893eb53b4428c52cdbab50a50d7 | |
parent | ad6d8839caf6d44539148038cb049498061660e3 (diff) | |
download | FreeBSD-src-159c9364d9bd6b7e517fb24e51ea68177e1a732c.zip FreeBSD-src-159c9364d9bd6b7e517fb24e51ea68177e1a732c.tar.gz |
MFC r280236:
To avoid a possible race, release the reference to ifa after return
from nd6_dad_na_input().
-rw-r--r-- | sys/netinet6/nd6_nbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 75ec443..2d5b941 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -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; } |