Fixed Typo

Took me an embarrassingly long time to catch this little guy.
This commit is contained in:
ScorpionInc 2022-09-28 01:41:09 +02:00 committed by GitHub
parent 10850d2810
commit b8652ca571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ int parse_data(char *input_hash, unsigned char ** salt, unsigned char ** nonce,
for (i = 0, j = 0; i < MAC_SIZE*2; i+=2, j++)
{
(*mac)[j] = (p[i] <= '9' ? p[i] - '0' : toupper(p[i]) - 'A' + 10) << 4;
(*mac)[j] |= p[i+1] <= '9' ? p[i+1] - '0' : toupper(p[i+1]) - 'A' + 10; }
(*mac)[j] |= p[i+1] <= '9' ? p[i+1] - '0' : toupper(p[i+1]) - 'A' + 10;
}
if(mac_comparison == 1 && !memcmp((*mac), zero_string, MAC_SIZE))