Page MenuHomeFreeBSD

D41224.id125321.diff
No OneTemporary

D41224.id125321.diff

diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1852,7 +1852,7 @@
if (error != 0)
goto bad;
- if (outlen + LINUX_CMSG_LEN(datalen) > maxlen) {
+ if (outlen + LINUX_CMSG_SPACE(datalen) > maxlen) {
if (outlen == 0) {
error = EMSGSIZE;
goto err;
@@ -1871,7 +1871,7 @@
error = copyout(data, outbuf, datalen);
if (error == 0) {
outbuf += LINUX_CMSG_ALIGN(datalen);
- outlen += LINUX_CMSG_LEN(datalen);
+ outlen += LINUX_CMSG_SPACE(datalen);
}
}
err:

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 4:25 PM (3 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16337747
Default Alt Text
D41224.id125321.diff (609 B)

Event Timeline