changeset 5039:953f02db95dc HEAD

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.
author Timo Sirainen <tss@iki.fi>
date Fri, 19 Jan 2007 17:25:34 +0200
parents b2921478f94f
children b307bb3ec598
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	Fri Jan 19 17:19:32 2007 +0200
+++ b/src/auth/auth-request.c	Fri Jan 19 17:25:34 2007 +0200
@@ -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 */