mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Remove impossible (hk_peer == NULL) check from ng_address_hook().
Valid hook can't have NULL peer. Even invalid one can't, as it is resets to deadhook, but not NULL.
This commit is contained in:
parent
9371f06305
commit
e81de8afb0
1 changed files with 0 additions and 1 deletions
|
|
@ -3577,7 +3577,6 @@ ng_address_hook(node_p here, item_p item, hook_p hook, ng_ID_t retaddr)
|
|||
*/
|
||||
if ((hook == NULL)
|
||||
|| NG_HOOK_NOT_VALID(hook)
|
||||
|| (NG_HOOK_PEER(hook) == NULL)
|
||||
|| NG_HOOK_NOT_VALID(NG_HOOK_PEER(hook))
|
||||
|| NG_NODE_NOT_VALID(NG_PEER_NODE(hook))) {
|
||||
NG_FREE_ITEM(item);
|
||||
|
|
|
|||
Loading…
Reference in a new issue