diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-27 21:17:58 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-27 21:17:58 +0000 |
commit | 8acba6091f7e2b638d3c942269f1fb1feaf09792 (patch) | |
tree | 766e046fd72efaea5f76ca249680fbddee16353d /pkg/sentry/syscalls | |
parent | 38fe6982d5199da5117df7536070cefdea01188c (diff) | |
parent | abbee5615f4480d8a41b4cf63839d2ab13b19abf (diff) |
Merge release-20190806.1-201-gabbee56 (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r-- | pkg/sentry/syscalls/linux/sys_socket.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_socket.go b/pkg/sentry/syscalls/linux/sys_socket.go index 3bac4d90d..b5a72ce63 100644 --- a/pkg/sentry/syscalls/linux/sys_socket.go +++ b/pkg/sentry/syscalls/linux/sys_socket.go @@ -531,7 +531,7 @@ func SetSockOpt(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Sy return 0, nil, syserror.ENOTSOCK } - if optLen <= 0 { + if optLen < 0 { return 0, nil, syserror.EINVAL } if optLen > maxOptLen { |