summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2014-12-11 09:16:45 +0000
committermarkj <markj@FreeBSD.org>2014-12-11 09:16:45 +0000
commitb1aa3197782d207ddc69453caea131185174fcdc (patch)
tree361d7b4b2e6af58a569ef899f1f11ea94437780d /sys/netinet6
parent504cc95e05d4edf7e1615ae450c370f6cc7a96ae (diff)
downloadFreeBSD-src-b1aa3197782d207ddc69453caea131185174fcdc.zip
FreeBSD-src-b1aa3197782d207ddc69453caea131185174fcdc.tar.gz
Revert r275695: nd6_dad_find() was already correct.
Reported by: ae, kib Pointy hat to: markj
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/nd6_nbr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index 0fc1dc3..39a36e8 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -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
OpenPOWER on IntegriCloud