mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 16:18:54 -04:00
Fix a bug where if the interface was in promiscuous mode when the
last hook was disconnected, the interface would not get reset to non-promiscuous mode. Reported by: jdp
This commit is contained in:
parent
45afb7befd
commit
3d48aa2a7c
1 changed files with 2 additions and 0 deletions
|
|
@ -697,6 +697,8 @@ ng_ether_disconnect(hook_p hook)
|
|||
priv->lowerOrphan = 0;
|
||||
} else
|
||||
panic("%s: weird hook", __FUNCTION__);
|
||||
if (hook->node->numhooks == 0)
|
||||
ng_rmnode(hook->node); /* reset node */
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue