Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5302:db232a079106 HEAD
If unknown user was found from auth cache, we returned an invalid value
instead of USERDB_RESULT_USER_UNKNOWN.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 14 Mar 2007 14:42:27 +0200 |
parents | 3dd58ee1f74b |
children | 70fea9bab837 |
files | src/auth/auth-request.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/auth-request.c Wed Mar 14 14:09:39 2007 +0200 +++ b/src/auth/auth-request.c Wed Mar 14 14:42:27 2007 +0200 @@ -600,12 +600,12 @@ if (*value == '\0') { /* negative cache entry */ - *result_r = PASSDB_RESULT_USER_UNKNOWN; + *result_r = USERDB_RESULT_USER_UNKNOWN; *reply_r = auth_stream_reply_init(request); return TRUE; } - *result_r = PASSDB_RESULT_OK; + *result_r = USERDB_RESULT_OK; *reply_r = auth_stream_reply_init(request); auth_stream_reply_import(*reply_r, value); return TRUE; @@ -640,7 +640,7 @@ "user not found from userdb"); } - if (result != PASSDB_RESULT_INTERNAL_FAILURE) + if (result != USERDB_RESULT_INTERNAL_FAILURE) auth_request_userdb_save_cache(request, reply, result); else if (passdb_cache != NULL && userdb->cache_key != NULL) { /* lookup failed. if we're looking here only because the