Prevent double free of control in common sendmsg path as sosend
already freeing it.
This commit is contained in:
parent
e0daa8fb65
commit
43c7490c64
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user