From: Matthew Newton Date: Wed, 27 Jul 2016 11:47:26 +0000 (+0100) Subject: rlm_pap: show the request password on mismatch, not the "known good" one X-Git-Tag: release_3_0_12~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43830d5c82c51353ef7edfedc421bd21df462f30;p=thirdparty%2Ffreeradius-server.git rlm_pap: show the request password on mismatch, not the "known good" one --- diff --git a/src/modules/rlm_pap/rlm_pap.c b/src/modules/rlm_pap/rlm_pap.c index 478d4d66c0d..be502576058 100644 --- a/src/modules/rlm_pap/rlm_pap.c +++ b/src/modules/rlm_pap/rlm_pap.c @@ -540,7 +540,7 @@ static rlm_rcode_t CC_HINT(nonnull) pap_auth_clear(UNUSED rlm_pap_t *inst, REQUE request->password->vp_octets, vp->vp_length) != 0)) { REDEBUG("Cleartext password \"%s\" does not match \"known good\" password", - vp->vp_strvalue); + request->password->vp_strvalue); return RLM_MODULE_REJECT; } return RLM_MODULE_OK;