changeset 3682:0207808033ad HEAD

Non-plaintext authentication and passdb cache didn't work together. Patch by Andrey Panin.
author Timo Sirainen <tss@iki.fi>
date Thu, 27 Oct 2005 17:29:21 +0300
parents 771cd6776d4b
children 28cca6317829
files src/auth/auth-request.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-request.c	Thu Oct 27 16:40:40 2005 +0300
+++ b/src/auth/auth-request.c	Thu Oct 27 17:29:21 2005 +0300
@@ -409,6 +409,8 @@
 
 	i_assert(request->state == AUTH_REQUEST_STATE_MECH_CONTINUE);
 
+	request->credentials = credentials;
+
 	cache_key = passdb_cache == NULL ? NULL : passdb->cache_key;
 	if (cache_key != NULL) {
 		if (passdb_cache_lookup_credentials(request, cache_key,
@@ -421,7 +423,6 @@
 	}
 
 	request->state = AUTH_REQUEST_STATE_PASSDB;
-	request->credentials = credentials;
 	request->private_callback.lookup_credentials = callback;
 
 	if (passdb->blocking)