From fae12cf1ef9b18e9ec10e711bc2d48c74c09dce1 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 21 Apr 2021 07:20:20 +0100 Subject: [PATCH] Use error corruption detection as initial return value Signed-off-by: Hanno Becker --- library/ssl_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_msg.c b/library/ssl_msg.c index 33751c72a..826c53239 100644 --- a/library/ssl_msg.c +++ b/library/ssl_msg.c @@ -5123,7 +5123,7 @@ static int ssl_check_ctr_renegotiate( mbedtls_ssl_context *ssl ) */ static int ssl_handle_hs_message_post_handshake( mbedtls_ssl_context *ssl ) { - int ret; + int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; /* * - For client-side, expect SERVER_HELLO_REQUEST.