From 89af51ff39d1efb6c1ffd6ef323cbd254b4ada6e Mon Sep 17 00:00:00 2001 From: irwir Date: Thu, 26 Sep 2019 21:04:56 +0300 Subject: [PATCH] Resolve #2801 - remove repetitive assignment to ssl->in_msg (the first value was never used) --- library/ssl_tls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 9577b35100..48c433e672 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -6414,7 +6414,7 @@ static int ssl_get_next_record( mbedtls_ssl_context *ssl ) #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_iv = ssl->in_len + 2; /* The record content type may change during decryption, * so re-read it. */