mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Remove versions test from dtls1_buffer_message
Since this is always called from DTLS code it is safe to assume the header length should be the DTLS value. This avoids the need to check the version number and should work with any version of DTLS (not just 1.0).
This commit is contained in:
parent
cfd298b7ae
commit
9cf0f18754
@ -1037,7 +1037,7 @@ dtls1_buffer_message(SSL *s, int is_ccs)
|
||||
if ( is_ccs)
|
||||
{
|
||||
OPENSSL_assert(s->d1->w_msg_hdr.msg_len +
|
||||
((s->version==DTLS1_VERSION)?DTLS1_CCS_HEADER_LENGTH:3) == (unsigned int)s->init_num);
|
||||
DTLS1_CCS_HEADER_LENGTH == (unsigned int)s->init_num);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user