diff options
-rw-r--r-- | sys/netgraph/ng_gif.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/ng_gif.c b/sys/netgraph/ng_gif.c index 794378b..1349690 100644 --- a/sys/netgraph/ng_gif.c +++ b/sys/netgraph/ng_gif.c @@ -265,10 +265,11 @@ static void ng_gif_detach(struct ifnet *ifp) { const node_p node = IFP2NG(ifp); - const priv_p priv = NG_NODE_PRIVATE(node); + const priv_p priv; if (node == NULL) /* no node (why not?), ignore */ return; + priv = NG_NODE_PRIVATE(node); NG_NODE_REALLY_DIE(node); /* Force real removal of node */ /* * We can't assume the ifnet is still around when we run shutdown |