Prevent double free of control in common sendmsg path as sosend

already freeing it.
This commit is contained in:
dchagin 2016-01-17 19:28:13 +00:00
parent e0daa8fb65
commit 43c7490c64

View File

@ -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);