diff options
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/rtsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 88c9cc621569..3ad9ee6c9863 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1008,7 +1008,7 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS) if (req->newptr) return (EPERM); if (namelen != 3) - return (EINVAL); + return ((namelen < 3) ? EISDIR : ENOTDIR); af = name[0]; Bzero(&w, sizeof(w)); w.w_op = name[1]; |
