summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason King <jason.king@joyent.com>2018-10-25 21:25:54 +0000
committerJason King <jason.king@joyent.com>2018-10-29 15:15:34 +0000
commitc3e2d8ec2df477170080efe0b8089ec78a8347e1 (patch)
tree0eef0f33a5016e124663b1fc77707c68b3c126fd
parentd6f83baef622cfdb6461be5de1fa09b839ad330c (diff)
downloadillumos-joyent-c3e2d8ec2df477170080efe0b8089ec78a8347e1.tar.gz
OS-7328 lx recvmsg should allow cmsgs with no data
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/brand/lx/syscall/lx_socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/brand/lx/syscall/lx_socket.c b/usr/src/uts/common/brand/lx/syscall/lx_socket.c
index 18bc92433d..e961abdac1 100644
--- a/usr/src/uts/common/brand/lx/syscall/lx_socket.c
+++ b/usr/src/uts/common/brand/lx/syscall/lx_socket.c
@@ -1009,7 +1009,7 @@ stol_cmsgs_copyout(void *input, socklen_t inlen, void *addr,
goto finish;
}
- VERIFY(inlen > sizeof (struct cmsghdr));
+ VERIFY(inlen >= sizeof (struct cmsghdr));
/*
* First determine how much space we need for the conversion and