Author: markj
Date: Thu Dec 11 09:16:45 2014
New Revision: 275700
URL: https://svnweb.freebsd.org/changeset/base/275700

Log:
  Revert r275695: nd6_dad_find() was already correct.
  
  Reported by:  ae, kib
  Pointy hat to:        markj

Modified:
  head/sys/netinet6/nd6_nbr.c

Modified: head/sys/netinet6/nd6_nbr.c
==============================================================================
--- head/sys/netinet6/nd6_nbr.c Thu Dec 11 08:05:59 2014        (r275699)
+++ head/sys/netinet6/nd6_nbr.c Thu Dec 11 09:16:45 2014        (r275700)
@@ -1210,12 +1210,11 @@ nd6_dad_find(struct ifaddr *ifa)
        TAILQ_FOREACH(dp, &V_dadq, dad_list)
                if (dp->dad_ifa == ifa) {
                        refcount_acquire(&dp->dad_refcnt);
-                       DADQ_RUNLOCK();
-                       return (dp);
+                       break;
                }
        DADQ_RUNLOCK();
 
-       return (NULL);
+       return (dp);
 }
 
 static void
_______________________________________________
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