Revert r275695: nd6_dad_find() was already correct.

Reported by:	ae, kib
Pointy hat to:	markj
This commit is contained in:
Mark Johnston 2014-12-11 09:16:45 +00:00
parent c293113327
commit a37271c3b8

View File

@ -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