Skip to content

Commit

Permalink
To avoid a possible race, release the reference to ifa after return
Browse files Browse the repository at this point in the history
from nd6_dad_na_input().

Submitted by:	Alexandre Martins
MFC after:	1 week
  • Loading branch information
bu7cher committed Mar 19, 2015
1 parent 746d3f6 commit a41131d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/netinet6/nd6_nbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,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;
}

Expand Down

0 comments on commit a41131d

Please sign in to comment.