[dovecot-cvs] dovecot/src/auth auth-request.c,1.37,1.38

cras at dovecot.org cras at dovecot.org
Thu Oct 27 17:29:23 EEST 2005


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

Modified Files:
	auth-request.c 
Log Message:
Non-plaintext authentication and passdb cache didn't work together. Patch by
Andrey Panin.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- auth-request.c	20 Oct 2005 09:07:48 -0000	1.37
+++ auth-request.c	27 Oct 2005 14:29:21 -0000	1.38
@@ -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)



More information about the dovecot-cvs mailing list