Skip to content

Commit

Permalink
Use k5_bcmp() in krb5_k_verify_checksum()
Browse files Browse the repository at this point in the history
  • Loading branch information
greghudson committed Mar 9, 2016
1 parent 0533ebf commit 5fd0c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/crypto/krb/verify_checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ krb5_k_verify_checksum(krb5_context context, krb5_key key,
if (ret)
return ret;

*valid = (memcmp(computed.contents, cksum->contents,
ctp->output_size) == 0);
*valid = (k5_bcmp(computed.contents, cksum->contents,
ctp->output_size) == 0);

free(computed.contents);
return 0;
Expand Down

0 comments on commit 5fd0c22

Please sign in to comment.