aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2005-05-23 13:39:20 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2005-05-23 13:39:20 +0000
commita09c9f01cdfa4500784929c7e118f3ca7f83860f (patch)
treed7dcd357bdd6569d1dda4cb8cef68cd2b9fac381 /sys/netgraph
parentbb5a85a5d7cebbdd76230c23e0cc32e59d441e62 (diff)
Notes
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_split.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netgraph/ng_split.c b/sys/netgraph/ng_split.c
index 15b60572a7c3..df85fe535b92 100644
--- a/sys/netgraph/ng_split.c
+++ b/sys/netgraph/ng_split.c
@@ -112,9 +112,8 @@ ng_split_newhook(node_p node, hook_p hook, const char *name)
localhook = &priv->in;
} else if (strcmp(name, NG_SPLIT_HOOK_OUT) == 0) {
localhook = &priv->out;
- } else {
- return (EPFNOSUPPORT);
- }
+ } else
+ return (EINVAL);
if (*localhook != NULL)
return (EISCONN);