Commit c034d83b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in compare_hmac.

parent bf40cd70
......@@ -251,10 +251,8 @@ compare_hmac(const unsigned char *src, const unsigned char *dst,
true_hmaclen = compute_hmac(src, dst, packet,
packet + 4, bodylen, keys[i],
true_hmac);
if(true_hmaclen != hmaclen) {
debugf("Bad hmac length (%d != %d).\n", true_hmaclen, hmaclen);
return -1;
}
if(true_hmaclen != hmaclen)
continue;
if(memcmp(true_hmac, hmac, hmaclen) == 0)
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment