diff options
-rw-r--r-- | sys/netgraph/ng_ether.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index fcf2f83..775c213 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -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); } |