From: Alan T. DeKok Date: Tue, 13 Dec 2011 20:07:07 +0000 (+0100) Subject: Account for EAP header and EAP-MSCHAPv2 opcode X-Git-Tag: release_3_0_0_beta0~446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50e3bfc9489cbbc02b493e31c8e46a0710774967;p=thirdparty%2Ffreeradius-server.git Account for EAP header and EAP-MSCHAPv2 opcode Found by Matt Dayman. --- diff --git a/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c b/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c index 4f600cf5313..8d66745cbae 100644 --- a/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c +++ b/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c @@ -404,7 +404,7 @@ static int mschapv2_authenticate(void *arg, EAP_HANDLER *handler) /* * Sanity check the response. */ - if (eap_ds->response->length <= 4) { + if (eap_ds->response->length <= 5) { radlog(L_ERR, "rlm_eap_mschapv2: corrupted data"); return 0; }