Commit ecd1f428 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo in compare_hmac.

parent 9a5de345
...@@ -251,10 +251,8 @@ compare_hmac(const unsigned char *src, const unsigned char *dst, ...@@ -251,10 +251,8 @@ compare_hmac(const unsigned char *src, const unsigned char *dst,
true_hmaclen = compute_hmac(src, dst, packet, true_hmaclen = compute_hmac(src, dst, packet,
packet + 4, bodylen, keys[i], packet + 4, bodylen, keys[i],
true_hmac); true_hmac);
if(true_hmaclen != hmaclen) { if(true_hmaclen != hmaclen)
debugf("Bad hmac length (%d != %d).\n", true_hmaclen, hmaclen); continue;
return -1;
}
if(memcmp(true_hmac, hmac, hmaclen) == 0) if(memcmp(true_hmac, hmac, hmaclen) == 0)
return 1; 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