[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.17,1.58.2.18

tss at dovecot.org tss at dovecot.org
Fri Jan 19 13:27:38 UTC 2007


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv24542

Modified Files:
      Tag: branch_1_0
	auth-request.c 
Log Message:
If request fails with internal failure, don't crash if auth cache is
disabled.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.17
retrieving revision 1.58.2.18
diff -u -d -r1.58.2.17 -r1.58.2.18
--- auth-request.c	16 Jan 2007 13:23:26 -0000	1.58.2.17
+++ auth-request.c	19 Jan 2007 13:27:36 -0000	1.58.2.18
@@ -611,7 +611,7 @@
 
 	if (result != PASSDB_RESULT_INTERNAL_FAILURE)
 		auth_request_userdb_save_cache(request, reply, result);
-	else {
+	else if (passdb_cache != NULL && userdb->cache_key != NULL) {
 		/* lookup failed. if we're looking here only because the
 		   request was expired in cache, fallback to using cached
 		   expired record. */



More information about the dovecot-cvs mailing list