[dovecot-cvs] dovecot/src/auth auth-request.c,1.78,1.79

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


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

Modified Files:
	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.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- auth-request.c	31 Dec 2006 16:11:14 -0000	1.78
+++ auth-request.c	19 Jan 2007 13:27:38 -0000	1.79
@@ -639,7 +639,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