From 8a660c773a2f488dab378e303f09848740aaa8c4 Mon Sep 17 00:00:00 2001 From: Archie Cobbs Date: Mon, 7 Aug 2000 22:41:12 +0000 Subject: [PATCH] Fix a bug where we were accessing already free'd memory during node shutdown. Detected via: 0xdeadc0de --- sys/netgraph/ng_frame_relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_frame_relay.c b/sys/netgraph/ng_frame_relay.c index 389dd95ff625..6004a7e2a2c8 100644 --- a/sys/netgraph/ng_frame_relay.c +++ b/sys/netgraph/ng_frame_relay.c @@ -492,7 +492,7 @@ ngfrm_rmnode(node_p node) ng_unname(node); node->private = NULL; FREE(sc, M_NETGRAPH); - ng_unref(sc->node); + ng_unref(node); return (0); }