dovecot-2.0: auth: If userdb lookup fails internally, don't cach...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Mar 31 19:22:29 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/ce7ed594d99e
changeset: 11017:ce7ed594d99e
user: Timo Sirainen <tss at iki.fi>
date: Wed Mar 31 19:18:01 2010 +0300
description:
auth: If userdb lookup fails internally, don't cache the result.
diffstat:
src/auth/auth-request.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r dbb05e38295a -r ce7ed594d99e src/auth/auth-request.c
--- a/src/auth/auth-request.c Mon Mar 29 17:47:44 2010 +0300
+++ b/src/auth/auth-request.c Wed Mar 31 19:18:01 2010 +0300
@@ -740,7 +740,9 @@
}
}
- if (result != USERDB_RESULT_INTERNAL_FAILURE)
+ if (request->userdb_lookup_failed) {
+ /* no caching */
+ } else if (result != USERDB_RESULT_INTERNAL_FAILURE)
auth_request_userdb_save_cache(request, result);
else if (passdb_cache != NULL && userdb->cache_key != NULL) {
/* lookup failed. if we're looking here only because the
More information about the dovecot-cvs
mailing list