summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-05-29 13:14:08 +0200
committerEmilia Kasper <emilia@openssl.org>2015-06-08 14:57:04 +0200
commit2974e3d4641b80c76197e653a016e7c010eaf3a2 (patch)
treed242f93d2647208a9a89cf3ecd513986f3d3d8b6
parent1e4a355dcabe2f75df5bb8b41b394d37037169d2 (diff)
Use CRYPTO_memcmp in ssl3_record.c
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r--ssl/record/ssl3_record.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/record/ssl3_record.c b/ssl/record/ssl3_record.c
index bae9490798..dbec5f1fc2 100644
--- a/ssl/record/ssl3_record.c
+++ b/ssl/record/ssl3_record.c
@@ -1072,7 +1072,7 @@ int tls1_cbc_remove_padding(const SSL *s,
*/
if ((s->options & SSL_OP_TLS_BLOCK_PADDING_BUG) && !s->expand) {
/* First packet is even in size, so check */
- if ((memcmp(RECORD_LAYER_get_read_sequence(&s->rlayer),
+ if ((CRYPTO_memcmp(RECORD_LAYER_get_read_sequence(&s->rlayer),
"\0\0\0\0\0\0\0\0", 8) == 0) &&
!(padding_length & 1)) {
s->s3->flags |= TLS1_FLAGS_TLS_PADDING_BUG;
@@ -1578,4 +1578,3 @@ int dtls1_get_record(SSL *s)
return (1);
}
-