Use int ret = MBEDTLS_ERROR_CORRUPTION_DETECTED; idiom

Co-authored-by: Gilles Peskine <gilles.peskine@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2020-07-22 12:22:51 +02:00 committed by Manuel Pégourié-Gonnard
parent 0b2112d304
commit e0765f35d5

View file

@ -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 );