[dovecot-cvs] dovecot/src/auth auth-request.c,1.58.2.27,1.58.2.28

tss at dovecot.org tss at dovecot.org
Wed Mar 7 02:14:43 EET 2007


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

Modified Files:
      Tag: branch_1_0
	auth-request.c 
Log Message:
Fixed a crash when non-plaintext mechanism used auth_cache.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.58.2.27
retrieving revision 1.58.2.28
diff -u -d -r1.58.2.27 -r1.58.2.28
--- auth-request.c	19 Feb 2007 20:00:18 -0000	1.58.2.27
+++ auth-request.c	7 Mar 2007 00:14:41 -0000	1.58.2.28
@@ -507,6 +507,7 @@
 	i_assert(request->state == AUTH_REQUEST_STATE_MECH_CONTINUE);
 
 	request->credentials = credentials;
+	request->private_callback.lookup_credentials = callback;
 
 	cache_key = passdb_cache == NULL ? NULL : passdb->cache_key;
 	if (cache_key != NULL) {
@@ -523,7 +524,6 @@
 	}
 
 	request->state = AUTH_REQUEST_STATE_PASSDB;
-	request->private_callback.lookup_credentials = callback;
 
 	if (passdb->blocking)
 		passdb_blocking_lookup_credentials(request);



More information about the dovecot-cvs mailing list