diff options
author | Renato Botelho <renato@netgate.com> | 2016-05-17 20:44:35 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-05-17 20:44:35 -0300 |
commit | 3ef16fb22937fda756df399303c2a2b8ee053f4e (patch) | |
tree | 410f30e2b21a00404e2dec119a4a33d722439686 /sys/kern | |
parent | 15713f264bde6f14058d95ec2a1c7a0665af2e54 (diff) | |
parent | 8a232783c3444677eb1faa3048123dda21767094 (diff) | |
download | FreeBSD-src-3ef16fb22937fda756df399303c2a2b8ee053f4e.zip FreeBSD-src-3ef16fb22937fda756df399303c2a2b8ee053f4e.tar.gz |
Merge remote-tracking branch 'origin/releng/10.3' into RELENG_2_3_1
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index fa36849..97ca115 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1787,6 +1787,9 @@ sockargs(mp, buf, buflen, type) struct mbuf *m; int error; + if (buflen < 0) + return (EINVAL); + if (buflen > MLEN) { #ifdef COMPAT_OLDSOCK if (type == MT_SONAME && buflen <= 112) |