[dovecot-cvs] dovecot/src/auth auth-request.c,1.79,1.80

tss at dovecot.org tss at dovecot.org
Fri Jan 19 15:25:36 UTC 2007


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

Modified Files:
	auth-request.c 
Log Message:
auth cache: If passdb didn't provide the password, we used the user-given
plaintext password, but we cached it with wrong scheme unless the passdb's
default scheme was plain.



Index: auth-request.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/auth-request.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- auth-request.c	19 Jan 2007 13:27:38 -0000	1.79
+++ auth-request.c	19 Jan 2007 15:25:34 -0000	1.80
@@ -232,7 +232,8 @@
 		   strdup() it so that mech_password doesn't get
 		   cleared too early. */
 		request->passdb_password =
-			p_strdup(request->pool, request->mech_password);
+			p_strconcat(request->pool, "{plain}",
+				    request->mech_password, NULL);
 	}
 
 	/* save all except the currently given password in cache */



More information about the dovecot-cvs mailing list