From 05413d9041c10f1bff102df36bcd68309e3b12cc Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 12 Jul 2019 09:44:55 +0100 Subject: [PATCH] Remove duplicate setting of ssl->in_msgtype and ssl->in_msglen --- library/ssl_tls.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 7e3b9ebae..9083156fc 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -5989,14 +5989,10 @@ static int ssl_get_next_record( mbedtls_ssl_context *ssl ) * assuming no CID and no offset between record content and * record plaintext. */ ssl_update_in_pointers( ssl ); - - /* Setup internal message pointers from record structure. */ - ssl->in_msgtype = rec.type; #if defined(MBEDTLS_SSL_DTLS_CONNECTION_ID) ssl->in_len = ssl->in_cid + rec.cid_len; #endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */ ssl->in_iv = ssl->in_msg = ssl->in_len + 2; - ssl->in_msglen = rec.data_len; /* The record content type may change during decryption, * so re-read it. */