Merge pull request #8514 from mschulz-at-hilscher/fixes/uninitialized-variable-in-ssl_msg

Fix uninitialized variable warnings in ssl_msg.c
This commit is contained in:
Manuel Pégourié-Gonnard 2023-12-06 11:06:03 +00:00 committed by GitHub
commit ad4f0ada37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3627,7 +3627,7 @@ MBEDTLS_CHECK_RETURN_CRITICAL
static int ssl_handle_possible_reconnect(mbedtls_ssl_context *ssl) static int ssl_handle_possible_reconnect(mbedtls_ssl_context *ssl)
{ {
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
size_t len; size_t len = 0;
if (ssl->conf->f_cookie_write == NULL || if (ssl->conf->f_cookie_write == NULL ||
ssl->conf->f_cookie_check == NULL) { ssl->conf->f_cookie_check == NULL) {