summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorHiroaki Etoh <etoh@cvs.openbsd.org>2002-12-10 08:53:43 +0000
committerHiroaki Etoh <etoh@cvs.openbsd.org>2002-12-10 08:53:43 +0000
commitac60a11eed16b25cf7edfad88a766a64e606e737 (patch)
tree2a4310196f86e0c64a75c750427bbf03d208fda5 /lib/libc/sys
parent7d33e82414f4ac478d0c183cf3fd92ac128af7d5 (diff)
bug fix
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/stack_protector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index 783f38c3857..79f5c825562 100644
--- a/lib/libc/sys/stack_protector.c
+++ b/lib/libc/sys/stack_protector.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack_protector.c,v 1.2 2002/12/02 09:02:57 deraadt Exp $ */
+/* $OpenBSD: stack_protector.c,v 1.3 2002/12/10 08:53:42 etoh Exp $ */
/*
* Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat.
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(list)
-static char rcsid[] = "$OpenBSD: stack_protector.c,v 1.2 2002/12/02 09:02:57 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: stack_protector.c,v 1.3 2002/12/10 08:53:42 etoh Exp $";
#endif
#include <sys/param.h>
@@ -75,7 +75,7 @@ __stack_smash_handler(char func[], int damaged)
/* this may fail on a chroot jail, though luck */
syslog_r(LOG_CRIT, &sdata, message, func);
- bzero(sa, sizeof(struct sigaction));
+ bzero(&sa, sizeof(struct sigaction));
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sa.sa_handler = SIG_DFL;