summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-03-26 14:46:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-09-18 13:46:02 +0100
commit68039af3e7fbbdef1f8a801c9fe5399015c0e58d (patch)
tree61498b8ce4a9c5c8587567a4e20d5024d45c0b37 /ssl
parentda1247d653440145a9e4dc059a5650d15bbacc6a (diff)
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). (cherry picked from commit 9cf0f187542f080031f83c5e538d3e1872ac09d1)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_both.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index ee945cbd3a..262299b154 100644
--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -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
{