Prevent double free of control in common sendmsg path as sosend

already freeing it.
This commit is contained in:
Dmitry Chagin 2016-01-17 19:28:13 +00:00
parent 0bfee92849
commit 67968b35a0

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