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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user