From: Alan T. DeKok Date: Tue, 9 Feb 2016 23:45:21 +0000 (-0500) Subject: sizeof(new_nt_encrypted) is allowed X-Git-Tag: release_3_0_12~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca86674969e4d3f4e9ca3bbd127c9230e9467f7;p=thirdparty%2Ffreeradius-server.git sizeof(new_nt_encrypted) is allowed --- diff --git a/src/modules/rlm_mschap/rlm_mschap.c b/src/modules/rlm_mschap/rlm_mschap.c index 430cd7aabbd..3509bd6f5a1 100644 --- a/src/modules/rlm_mschap/rlm_mschap.c +++ b/src/modules/rlm_mschap/rlm_mschap.c @@ -1730,7 +1730,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, REQUEST *re return RLM_MODULE_INVALID; } - if ((new_nt_enc_len + nt_enc->vp_length - 4) >= sizeof(new_nt_encrypted)) { + if ((new_nt_enc_len + nt_enc->vp_length - 4) > sizeof(new_nt_encrypted)) { REDEBUG("Unpacked MS-CHAP-NT-Enc-PW length > 516"); return RLM_MODULE_INVALID; }