X-Git-Url: https://git.saurik.com/apple/ipsec.git/blobdiff_plain/886926c087c10c05fed266ba16e5f571352de3b4..f255a978ed5a0b035176fe69ed5a30007f5708d0:/ipsec-tools/racoon/isakmp_quick.c diff --git a/ipsec-tools/racoon/isakmp_quick.c b/ipsec-tools/racoon/isakmp_quick.c index 8bb4a87..808ce2b 100644 --- a/ipsec-tools/racoon/isakmp_quick.c +++ b/ipsec-tools/racoon/isakmp_quick.c @@ -691,7 +691,7 @@ quick_i2recv(iph2, msg0) goto end; } - result = memcmp(my_hash->v, r_hash, my_hash->l); + result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l); vfree(my_hash); if (result) { @@ -1020,7 +1020,7 @@ quick_i4recv(iph2, msg0) goto end; } - result = memcmp(my_hash->v, r_hash, my_hash->l); + result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l); vfree(my_hash); if (result) { @@ -1357,7 +1357,7 @@ quick_r1recv(iph2, msg0) goto end; } - result = memcmp(my_hash->v, r_hash, my_hash->l); + result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l); vfree(my_hash); if (result) { @@ -1891,7 +1891,7 @@ quick_r3recv(iph2, msg0) goto end; } - result = memcmp(my_hash->v, r_hash, my_hash->l); + result = timingsafe_bcmp(my_hash->v, r_hash, my_hash->l); vfree(my_hash); if (result) {