2nd round scan build

This commit is contained in:
toddouska
2013-02-14 16:00:45 -08:00
parent cdc651a75a
commit 9ea3371079
5 changed files with 12 additions and 6 deletions

View File

@@ -154,7 +154,7 @@ void HmacSetKey(Hmac* hmac, int type, const byte* key, word32 length)
default:
break;
}
if ( (hmac_block_size - length) > 0)
if (length < hmac_block_size)
XMEMSET(ip + length, 0, hmac_block_size - length);
for(i = 0; i < hmac_block_size; i++) {