This commit is contained in:
Julian Elischer 1999-10-27 11:53:53 +00:00
parent 04853d8a82
commit ed52f174ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52564

View File

@ -1304,11 +1304,11 @@ AAA
}
FREE(sp, M_NETGRAPH);
hook->private = NULL;
/* work out how many session hooks there are
/* work out how many session hooks there are */
/* Node goes away on last session hook removal */
hooks = node->numhooks; /* this one already not counted */
if (privp->ethernet_hook) hooks -= 1;
if (privp->debug) hooks -= 1;
if (privp->debug_hook) hooks -= 1;
if (hooks == 0)
ng_rmnode(node);
}