diff options
author | 2005-05-15 17:11:14 +0000 | |
---|---|---|
committer | 2005-05-15 17:11:14 +0000 | |
commit | 0199266d527a5cb2d6550b50826f6e2e4976ac92 (patch) | |
tree | 8ff44fa8fb7bea69d983b3303bc1542599fbb610 | |
parent | enable ep(4) (diff) | |
download | wireguard-openbsd-0199266d527a5cb2d6550b50826f6e2e4976ac92.tar.xz wireguard-openbsd-0199266d527a5cb2d6550b50826f6e2e4976ac92.zip |
move db->close to not hold this lock unnecssarily during long protracted
operations. ok millert@ ages ago.
-rw-r--r-- | libexec/spamd/grey.c | 6 |
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; |