Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5036:df93cf66022a HEAD
If request fails with internal failure, don't crash if auth cache is
disabled.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 19 Jan 2007 15:27:38 +0200 |
parents | 80f0ee36e905 |
children | d7198e2682c6 |
files | src/auth/auth-request.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request.c Thu Jan 18 21:51:18 2007 +0200 +++ b/src/auth/auth-request.c Fri Jan 19 15:27:38 2007 +0200 @@ -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. */