diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/rtsock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 25276d7..9d895ae 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1017,6 +1017,8 @@ sysctl_rtsock(SYSCTL_HANDLER_ARGS) if (namelen != 3) return ((namelen < 3) ? EISDIR : ENOTDIR); af = name[0]; + if (af > AF_MAX) + return (EINVAL); Bzero(&w, sizeof(w)); w.w_op = name[1]; w.w_arg = name[2]; |