summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-21 19:19:24 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-21 19:19:24 +0000
commitfb5d84effe4e90aaedb5e202e2a44ece749c29b3 (patch)
treed66df87cfbc8700917fcf7c65ba2fc53a52f86aa /sys/compat
parente8ebbaf6da046225b7745bbe670a73e8d0531958 (diff)
downloadFreeBSD-src-fb5d84effe4e90aaedb5e202e2a44ece749c29b3.zip
FreeBSD-src-fb5d84effe4e90aaedb5e202e2a44ece749c29b3.tar.gz
MFC 294233:
Prevent double free of control in common sendmsg path as sosend already freeing it.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 34af9da..dee4093 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1164,6 +1164,7 @@ linux_sendmsg_common(struct thread *td, l_int s, struct l_msghdr *msghdr,
msg.msg_iov = iov;
msg.msg_flags = 0;
error = linux_sendit(td, s, &msg, flags, control, UIO_USERSPACE);
+ control = NULL;
bad:
m_freem(control);
OpenPOWER on IntegriCloud