From: Fabian Keil Date: Mon, 1 Apr 2024 14:41:27 +0000 (+0200) Subject: wolfSSL: Unconditionally increment shutdown_attempts X-Git-Url: http://www.privoxy.org/gitweb/%40user-manual%40%40actions-help-prefix%40FILTER?a=commitdiff_plain;h=23dcf9be0e91645fe420fdf0c699f99d457d3fc9;p=privoxy.git wolfSSL: Unconditionally increment shutdown_attempts Previously the succeeding attempt wasn't counted. --- 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);