diff options
author | 2002-08-09 03:11:30 +0000 | |
---|---|---|
committer | 2002-08-09 03:11:30 +0000 | |
commit | 3684e9602a1561cb8ddba924cfc79b093c3d08a8 (patch) | |
tree | 0571cd4a403c094eeedc5eb095dc2eebb9b26a8c | |
parent | die if fd_set overruns. (diff) | |
download | wireguard-openbsd-3684e9602a1561cb8ddba924cfc79b093c3d08a8.tar.xz wireguard-openbsd-3684e9602a1561cb8ddba924cfc79b093c3d08a8.zip |
Correct the size arg to copyout.
-rw-r--r-- | sys/compat/linux/linux_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index c4ef4208b6c..09d04135eed 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_socket.c,v 1.24 2002/08/09 01:03:25 fgsch Exp $ */ +/* $OpenBSD: linux_socket.c,v 1.25 2002/08/09 03:11:30 aaron Exp $ */ /* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */ /* @@ -525,7 +525,7 @@ linux_sendto_hdrincl(p, bsa, retval) /* Convert fields from Linux to BSD raw IP socket format */ rpacket.ip_len = SCARG(bsa, len); - error = copyout(&rpacket, packet, sizeof(packet)); + error = copyout(&rpacket, packet, linux_ip_copysize); if (error) return (error); |