summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-01-24 13:32:19 +0000
committerglebius <glebius@FreeBSD.org>2005-01-24 13:32:19 +0000
commit3c24c38d30f3535b6fb6b9e76e13109f0ee6b5e4 (patch)
tree1d263972435552ceed844deec05b0d277c6c9e6a /sys/netgraph
parentad5a5073b4227ee128d67f971fb9c54554c0405a (diff)
downloadFreeBSD-src-3c24c38d30f3535b6fb6b9e76e13109f0ee6b5e4.zip
FreeBSD-src-3c24c38d30f3535b6fb6b9e76e13109f0ee6b5e4.tar.gz
Fix an evil typo.
Submitted by: Roselyn Lee MFC after: 3 days
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 95d45a0..64d5b3d 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -1330,7 +1330,7 @@ ng_con_nodes(node_p node, const char *name, node_p node2, const char *name2)
return (error);
/* Allocate the other hook and link it up */
NG_ALLOC_HOOK(hook2);
- if (hook == NULL) {
+ if (hook2 == NULL) {
TRAP_ERROR();
ng_destroy_hook(hook); /* XXX check ref counts so far */
NG_HOOK_UNREF(hook); /* including our ref */
OpenPOWER on IntegriCloud