summaryrefslogtreecommitdiff
path: root/libexec/spamd-setup/spamd-setup.c
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2003-03-09 02:50:55 +0000
committerBob Beck <beck@cvs.openbsd.org>2003-03-09 02:50:55 +0000
commitbc22ee8c2ffde64983b3d8aad692d05dae9c0f68 (patch)
treec51534d424281c7ddf8199d3bb956ed5d13579df /libexec/spamd-setup/spamd-setup.c
parent03ba5013694500d4687151b535dcdbcecabd2d85 (diff)
missed memset, found by dhartmei@
Diffstat (limited to 'libexec/spamd-setup/spamd-setup.c')
-rw-r--r--libexec/spamd-setup/spamd-setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/spamd-setup/spamd-setup.c b/libexec/spamd-setup/spamd-setup.c
index c4ffd69c081..7a171e6fb3a 100644
--- a/libexec/spamd-setup/spamd-setup.c
+++ b/libexec/spamd-setup/spamd-setup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd-setup.c,v 1.3 2003/03/08 22:06:02 deraadt Exp $ */
+/* $OpenBSD: spamd-setup.c,v 1.4 2003/03/09 02:50:54 beck Exp $ */
/*
* Copyright (c) 2003 Bob Beck. All rights reserved.
*
@@ -748,6 +748,7 @@ main(int argc, char *argv[])
white = blc - 1;
black = blc;
}
+ memset(&blists[black], 0, sizeof(struct blacklist));
blc += getlist(db_array, name, &blists[white],
&blists[black]);
}