mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Use CRYPTO_memcmp in ssl3_record.c
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
1e4a355dca
commit
2974e3d464
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user