From: Timo Sirainen Date: Wed, 29 Jun 2016 13:01:13 +0000 (+0300) Subject: auth: Fixed plaintext authentication when auth policy was already processed. X-Git-Tag: 2.3.0.rc1~3394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f000a3cda907a489ce643f9bea9b1dcefd4961eb;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed plaintext authentication when auth policy was already processed. Broken by e82511362. --- diff --git a/src/auth/auth-request.c b/src/auth/auth-request.c index 49d7a2fb26..fd983aad09 100644 --- a/src/auth/auth-request.c +++ b/src/auth/auth-request.c @@ -872,9 +872,10 @@ void auth_request_verify_plain(struct auth_request *request, i_assert(request->state == AUTH_REQUEST_STATE_MECH_CONTINUE); - if (request->policy_processed) - auth_request_verify_plain_continue(request, ctx->password, callback); - else { + if (request->policy_processed) { + auth_request_verify_plain_continue(request, + p_strdup(request->pool, password), callback); + } else { ctx = p_new(request->pool, struct auth_policy_check_ctx, 1); ctx->request = request; if (request->mech_password == NULL)