From 50e3bfc9489cbbc02b493e31c8e46a0710774967 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 13 Dec 2011 21:07:07 +0100 Subject: [PATCH] Account for EAP header and EAP-MSCHAPv2 opcode Found by Matt Dayman. --- src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4f600cf..8d66745 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; } -- 2.1.4