summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-09-05 10:28:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-09-05 10:28:44 +0000
commitc6c9cb6c61f234ebb1ac3728fd39f4dc41b7cf1d (patch)
tree8d9acd63ec64a74047112fc59ac1aed253a3d620 /sys/compat/linux/linux_socket.c
parent3827cf56b00ca00fc161a595b725a2456190dd23 (diff)
Fix various cases of stackgap_alloc() size arguments not being computed
correctly, usually yielding the right value on 32 bit machines because sizeof int == sizeof pointer.
Diffstat (limited to 'sys/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 0bb32291d9d..861fc69853c 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.38 2009/02/19 19:04:34 deraadt Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.39 2009/09/05 10:28:43 miod Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -312,7 +312,7 @@ linux_connect(p, v, retval)
#endif
status = stackgap_alloc(&sg, sizeof stat);
- statusl = stackgap_alloc(&sg, sizeof statusl);
+ statusl = stackgap_alloc(&sg, sizeof statl);
if ((error = copyout(&statl, statusl, sizeof statl)))
return error;