dovecot-2.0: auth: userdb passwd lookups should have been done v...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 27 08:44:18 EET 2012


details:   http://hg.dovecot.org/dovecot-2.0/rev/74d9f61e224d
changeset: 13108:74d9f61e224d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 27 08:44:12 2012 +0200
description:
auth: userdb passwd lookups should have been done via worker processes by default.

diffstat:

 src/auth/userdb-passwd.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r 13d764bbde11 -r 74d9f61e224d src/auth/userdb-passwd.c
--- a/src/auth/userdb-passwd.c	Fri Oct 05 00:25:02 2012 +0300
+++ b/src/auth/userdb-passwd.c	Tue Nov 27 08:44:12 2012 +0200
@@ -154,12 +154,11 @@
 	module = p_new(pool, struct passwd_userdb_module, 1);
 	module->module.cache_key = USER_CACHE_KEY;
 	module->tmpl = userdb_static_template_build(pool, "passwd", args);
+	module->module.blocking = TRUE;
 
 	if (userdb_static_template_remove(module->tmpl, "blocking",
-					  &value)) {
-		module->module.blocking = value == NULL ||
-			strcasecmp(value, "yes") == 0;
-	}
+					  &value))
+		module->module.blocking = strcasecmp(value, "yes") == 0;
 	return &module->module;
 }
 


More information about the dovecot-cvs mailing list