summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2005-05-15 17:11:15 +0000
committerBob Beck <beck@cvs.openbsd.org>2005-05-15 17:11:15 +0000
commit54b97112daeed866ffe79261bd2c12398047646f (patch)
tree7022c3487916429c49a5656a461b27afcdb436a6
parenteb635a690175951df8ffa207dfd62bc92dc4bbf1 (diff)
move db->close to not hold this lock unnecssarily during long protracted
operations. ok millert@ ages ago.
-rw-r--r--libexec/spamd/grey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c
index e3f85f48c8c..f00b80590ed 100644
--- a/libexec/spamd/grey.c
+++ b/libexec/spamd/grey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grey.c,v 1.21 2005/03/12 00:02:07 beck Exp $ */
+/* $OpenBSD: grey.c,v 1.22 2005/05/15 17:11:14 beck Exp $ */
/*
* Copyright (c) 2004,2005 Bob Beck. All rights reserved.
@@ -362,12 +362,12 @@ greyscan(char *dbname)
fprintf(stderr, "whitelisted %s\n", a);
}
}
+ db->close(db);
+ db = NULL;
configure_pf(whitelist, whitecount);
if (configure_spamd(traplist, trapcount, trapcfg) == -1)
syslog_r(LOG_DEBUG, &sdata, "configure_spamd failed");
- db->close(db);
- db = NULL;
freeaddrlists();
free(a);
a = NULL;