summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2002-10-30 14:54:34 +0000
committerdrahn <drahn@openbsd.org>2002-10-30 14:54:34 +0000
commit8f3cc053cb19abedcc40f98d33a6ab3ec132b268 (patch)
treecf3d0e67252aae66f1f284c3f84ccce6909c47ac
parentsimplify (diff)
downloadwireguard-openbsd-8f3cc053cb19abedcc40f98d33a6ab3ec132b268.tar.xz
wireguard-openbsd-8f3cc053cb19abedcc40f98d33a6ab3ec132b268.zip
Revert this va_copy addition, it cannot work on macppc (which is the
only arch where va_copy is currently required), current version of va_copy uses alloca, but since the results of the va_copy are not used here, only after return, stack trashing will occur. This will have to be revised again for gcc 3.2 support on powerpc.
-rw-r--r--lib/libc/gen/auth_subr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index e6faaa09efa..1da9ebb4149 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.18 2002/10/24 17:13:36 drahn Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.19 2002/10/30 14:54:34 drahn Exp $ */
/*-
* Copyright (c) 1995,1996,1997 Berkeley Software Design, Inc.
@@ -129,9 +129,7 @@ static va_list nilap;
* Quick one liners that only exist to keep auth_session_t opaque
*/
void auth_setstate(auth_session_t *as, int s){ as->state = s; }
-void auth_set_va_list(auth_session_t *as, va_list ap) {
- va_copy(as->ap, ap);
-}
+void auth_set_va_list(auth_session_t *as, va_list ap) { as->ap = ap; }
int auth_getstate(auth_session_t *as) { return (as->state); }
struct passwd *auth_getpwd(auth_session_t *as) { return (as->pwd); }