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:
Archie Cobbs 2000-12-11 03:36:26 +00:00
parent 45afb7befd
commit 3d48aa2a7c

View file

@ -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);
}