if our RESPONSE gets a FAILURE message, it means that the
supplicant doesn't like our password. Rather than complaining
about unexpected response, just send failure.
* a challenge.
*/
case PW_EAP_MSCHAPV2_RESPONSE:
+ if (data->code == PW_EAP_MSCHAPV2_FAILURE) goto failure;
+
if (data->code != PW_EAP_MSCHAPV2_CHALLENGE) {
radlog(L_ERR, "rlm_eap_mschapv2: Unexpected response received");
return 0;
return 0;
}
+ failure:
handler->request->options &= ~RAD_REQUEST_OPTION_PROXY_EAP;
eap_ds->request->code = PW_EAP_FAILURE;
return 1;