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.
Manual pull of
f26dcc5f45
* jump to "authentication"
*/
goto packet_ready;
-
-
}
/*
return 0;
}
+ failure:
handler->request->options &= ~RAD_REQUEST_OPTION_PROXY_EAP;
eap_ds->request->code = PW_EAP_FAILURE;
return 1;
return 0;
case PW_EAP_MSCHAPV2_CHALLENGE:
+ if (ccode == PW_EAP_MSCHAPV2_FAILURE) goto failure;
+
/*
* we sent a challenge, expecting a response
*/