From 23dcf9be0e91645fe420fdf0c699f99d457d3fc9 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 1 Apr 2024 16:41:27 +0200 Subject: [PATCH] wolfSSL: Unconditionally increment shutdown_attempts Previously the succeeding attempt wasn't counted. --- wolfssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl.c b/wolfssl.c index f011491b..10ecd6b0 100644 --- a/wolfssl.c +++ b/wolfssl.c @@ -973,9 +973,9 @@ static void shutdown_connection(WOLFSSL *ssl, const char *type) return; } ret = wolfSSL_shutdown(ssl); + shutdown_attempts++; if (WOLFSSL_SUCCESS != ret) { - shutdown_attempts++; log_error(LOG_LEVEL_CONNECT, "Failed to shutdown %s connection " "on socket %d. Attempts so far: %d, ret: %d", type, fd, shutdown_attempts, ret); -- 2.39.2