Author: ae
Date: Thu Mar 26 18:44:59 2015
New Revision: 280705
URL: https://svnweb.freebsd.org/changeset/base/280705

Log:
  MFC r280236:
    To avoid a possible race, release the reference to ifa after return
    from nd6_dad_na_input().

Modified:
  stable/10/sys/netinet6/nd6_nbr.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet6/nd6_nbr.c
==============================================================================
--- stable/10/sys/netinet6/nd6_nbr.c    Thu Mar 26 18:25:53 2015        
(r280704)
+++ stable/10/sys/netinet6/nd6_nbr.c    Thu Mar 26 18:44:59 2015        
(r280705)
@@ -700,8 +700,8 @@ nd6_na_input(struct mbuf *m, int off, in
         */
        if (ifa
         && (((struct in6_ifaddr *)ifa)->ia6_flags & IN6_IFF_TENTATIVE)) {
-               ifa_free(ifa);
                nd6_dad_na_input(ifa);
+               ifa_free(ifa);
                goto freeit;
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to