From c77ca1758e4fd8b25543be679ad8e1e311cc09f4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 3 Jun 1998 08:10:18 +0000 Subject: zero sigset_t before use --- bin/pax/pax.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/pax') diff --git a/bin/pax/pax.c b/bin/pax/pax.c index c5b55527f2b..d48f5f28f97 100644 --- a/bin/pax/pax.c +++ b/bin/pax/pax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pax.c,v 1.11 1997/09/01 18:29:58 deraadt Exp $ */ +/* $OpenBSD: pax.c,v 1.12 1998/06/03 08:10:17 deraadt Exp $ */ /* $NetBSD: pax.c,v 1.5 1996/03/26 23:54:20 mrg Exp $ */ /*- @@ -48,7 +48,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94"; #else -static char rcsid[] = "$OpenBSD: pax.c,v 1.11 1997/09/01 18:29:58 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: pax.c,v 1.12 1998/06/03 08:10:17 deraadt Exp $"; #endif #endif /* not lint */ @@ -385,6 +385,7 @@ gen_init() paxwarn(1, "Unable to set up signal mask"); return(-1); } + memset(&n_hand, 0, sizeof n_hand); n_hand.sa_mask = s_mask; n_hand.sa_flags = 0; n_hand.sa_handler = sig_cleanup; -- cgit v1.2.3