Fix a bug in sendmsg() and two compatibility versions of sendmsg().
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 16 Sep 2006 03:37:15 +0000 (03:37 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 16 Sep 2006 03:37:15 +0000 (03:37 +0000)
commit8130f673e72b1e1baa0388f7c394a6698b2090aa
tree768d623311041ffff43cea5a18f969defb8e7a41
parentfc00aa2bfe23ca6402384e653458c2f508a60737
Fix a bug in sendmsg() and two compatibility versions of sendmsg().
iovec_free() should not be called when iovec_copyin() fails.

Reported-by: Ilja van Sprundel
Found-using: A trivial system call fuzzer
sys/emulation/43bsd/43bsd_socket.c
sys/emulation/linux/linux_socket.c
sys/kern/uipc_syscalls.c