summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2003-05-15 18:51:28 +0000
committerjulian <julian@FreeBSD.org>2003-05-15 18:51:28 +0000
commit211414dc5e58705776a2a58363c1528176abedb4 (patch)
tree81f9cf860a51ad0c89d588b964a9817f6eb2a9bd
parent2dcd31b90a6c6e72607e9798a06896d3806fd7a9 (diff)
downloadFreeBSD-src-211414dc5e58705776a2a58363c1528176abedb4.zip
FreeBSD-src-211414dc5e58705776a2a58363c1528176abedb4.tar.gz
fix a cut-n-paste error.
in the case where the bridge node was closed down but a timeout still applied to it, the final reference to the node was freeing the private data structure using the wrong malloc type. Approved by: re@
-rw-r--r--sys/netgraph/ng_bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_bridge.c b/sys/netgraph/ng_bridge.c
index f552a50..476e433 100644
--- a/sys/netgraph/ng_bridge.c
+++ b/sys/netgraph/ng_bridge.c
@@ -987,7 +987,7 @@ ng_bridge_timeout(void *arg)
/* If node was shut down, this is the final lingering timeout */
s = splnet();
if (NG_NODE_NOT_VALID(node)) {
- FREE(priv, M_NETGRAPH);
+ FREE(priv, M_NETGRAPH_BRIDGE);
NG_NODE_SET_PRIVATE(node, NULL);
NG_NODE_UNREF(node);
splx(s);
OpenPOWER on IntegriCloud