summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2007-03-14 19:13:35 +0000
committerbeck <beck@openbsd.org>2007-03-14 19:13:35 +0000
commit023eb4177d7b5775f3e60fa1b358858fa6dde17f (patch)
tree64ca33e255024c4624b28e1a3f8b220d68c415f7
parentdo the adjustment of arbitrary 128 -> BLF_MAXUTILIZED in userland as well, (diff)
downloadwireguard-openbsd-023eb4177d7b5775f3e60fa1b358858fa6dde17f.tar.xz
wireguard-openbsd-023eb4177d7b5775f3e60fa1b358858fa6dde17f.zip
Don't delete grey entries when whitelisting. They expire anyway
and this hides the evidence. Avoids a potential race when using -M traps where a retry comes in between deletion and whitelisting. ok millert@
-rw-r--r--libexec/spamd/grey.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c
index dd76fccf4f1..334d23b1a2b 100644
--- a/libexec/spamd/grey.c
+++ b/libexec/spamd/grey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grey.c,v 1.35 2007/03/12 03:14:44 beck Exp $ */
+/* $OpenBSD: grey.c,v 1.36 2007/03/14 19:13:35 beck Exp $ */
/*
* Copyright (c) 2004-2006 Bob Beck. All rights reserved.
@@ -567,7 +567,6 @@ greyscan(char *dbname)
char *cp;
/*
- * remove this tuple-keyed entry from db
* add address to whitelist
* add an address-keyed entry to db
*/
@@ -586,10 +585,6 @@ greyscan(char *dbname)
if (tuple) {
if (cp != NULL)
- *cp = '\n';
- if (queue_change(a, NULL, 0, DBC_DEL) == -1)
- goto bad;
- if (cp != NULL)
*cp = '\0';
/* re-add entry, keyed only by ip */
gd.expire = now + whiteexp;