dovecot-2.2: auth: If blocking userdb returns no fields, don't c...

dovecot at dovecot.org dovecot at dovecot.org
Tue May 28 16:30:31 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/f9f6467001b9
changeset: 16405:f9f6467001b9
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 28 16:30:19 2013 +0300
description:
auth: If blocking userdb returns no fields, don't crash when trying to cache the result.

diffstat:

 src/auth/userdb-blocking.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 16183ae98947 -r f9f6467001b9 src/auth/userdb-blocking.c
--- a/src/auth/userdb-blocking.c	Tue May 28 01:03:58 2013 +0300
+++ b/src/auth/userdb-blocking.c	Tue May 28 16:30:19 2013 +0300
@@ -36,8 +36,8 @@
 		args = "";
 	}
 
+	request->userdb_reply = auth_fields_init(request->pool);
 	if (*args != '\0') {
-		request->userdb_reply = auth_fields_init(request->pool);
 		auth_fields_import(request->userdb_reply, args, 0);
 		if (auth_fields_exists(request->userdb_reply, "tempfail"))
 			request->userdb_lookup_failed = TRUE;


More information about the dovecot-cvs mailing list