mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Silence clang analyzer false positive.
clang does not know that two lookup calls will return the same pointer, so it assumes correctly that using the old pointer after dropping the reference to it is a bit risky.
This commit is contained in:
parent
92f19df431
commit
bf51c9665d
1 changed files with 2 additions and 1 deletions
|
|
@ -1307,7 +1307,8 @@ nd6_dad_stop(struct ifaddr *ifa)
|
|||
* we were waiting for it to stop, so re-do the lookup.
|
||||
*/
|
||||
nd6_dad_rele(dp);
|
||||
if (nd6_dad_find(ifa, NULL) == NULL)
|
||||
dp = nd6_dad_find(ifa, NULL);
|
||||
if (dp == NULL)
|
||||
return;
|
||||
|
||||
nd6_dad_del(dp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue