From e0765f35d53814dc3cf36303e0759022d0830ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 22 Jul 2020 12:22:51 +0200 Subject: [PATCH] Use int ret = MBEDTLS_ERROR_CORRUPTION_DETECTED; idiom Co-authored-by: Gilles Peskine --- 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 fefbd863b..ae4882db6 100644 --- a/library/ssl_msg.c +++ b/library/ssl_msg.c @@ -1147,7 +1147,7 @@ MBEDTLS_STATIC_TESTABLE int mbedtls_ssl_cf_hmac( unsigned char aux_out[MBEDTLS_MD_MAX_SIZE]; mbedtls_md_context_t aux; size_t offset; - int ret; + int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_md_init( &aux );