]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ignore buffer underflow
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 May 2017 19:28:07 +0000 (15:28 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 May 2017 19:39:33 +0000 (15:39 -0400)
src/modules/rlm_mschap/mschap.c

index 48737b18c9e3e55881eeb21708daeaddb800498a..f08c64b8f963379c86813ee8eddf3757ea85204f 100644 (file)
@@ -82,7 +82,7 @@ void mschap_challenge_hash(uint8_t const *peer_challenge,
        fr_sha1_update(&Context, (uint8_t const *) user_name,
                      strlen(user_name));
        fr_sha1_final(hash, &Context);
-       memcpy(challenge, hash, 8);
+       memcpy(challenge, hash, 8);                     //-V512
 }
 
 /*