From fb5d84effe4e90aaedb5e202e2a44ece749c29b3 Mon Sep 17 00:00:00 2001 From: dchagin Date: Thu, 21 Jan 2016 19:19:24 +0000 Subject: MFC 294233: Prevent double free of control in common sendmsg path as sosend already freeing it. --- sys/compat/linux/linux_socket.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.1