diff options
author | glebius <glebius@FreeBSD.org> | 2005-05-23 13:39:20 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-05-23 13:39:20 +0000 |
commit | fc2a32a0ae6143dae9f2a08d432f8119495c04cc (patch) | |
tree | d7dcd357bdd6569d1dda4cb8cef68cd2b9fac381 /sys/netgraph/ng_split.c | |
parent | 6e1ae33f12ffe2a6fd0cb309ff46e3e145e7a6dd (diff) | |
download | FreeBSD-src-fc2a32a0ae6143dae9f2a08d432f8119495c04cc.zip FreeBSD-src-fc2a32a0ae6143dae9f2a08d432f8119495c04cc.tar.gz |
Return EINVAL for incorrect hook names.
PR: kern/81349
Submitted by: Wojciech A. Koszek
Diffstat (limited to 'sys/netgraph/ng_split.c')
-rw-r--r-- | sys/netgraph/ng_split.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netgraph/ng_split.c b/sys/netgraph/ng_split.c index 15b6057..df85fe5 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); |