diff src/auth/auth-request.c @ 5233:359a8f31aa9b HEAD

Fixed a crash when non-plaintext mechanism used auth_cache.
author Timo Sirainen <tss@iki.fi>
date Wed, 07 Mar 2007 02:14:44 +0200
parents 3516e9856179
children c1d7e9493f08
line wrap: on
line diff
--- a/src/auth/auth-request.c	Wed Mar 07 01:59:43 2007 +0200
+++ b/src/auth/auth-request.c	Wed Mar 07 02:14:44 2007 +0200
@@ -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);