From 9ffcef128e39799eeda8f25f8435d0768f7ec1fa Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Fri, 10 Oct 2025 21:11:43 +0800 Subject: [PATCH] keep_alive(): Do not shadow own function name MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Joshua Rogers Reviewed-by: Saša Nedvědický Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/28826) --- crypto/cmp/cmp_http.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto/cmp/cmp_http.c b/crypto/cmp/cmp_http.c index 809763e8461..63de1314072 100644 --- a/crypto/cmp/cmp_http.c +++ b/crypto/cmp/cmp_http.c @@ -11,9 +11,9 @@ #include "cmp_local.h" -static int keep_alive(int keep_alive, int body_type, BIO **bios) +static int keep_alive(int want_keep_alive, int body_type, BIO **bios) { - if (keep_alive != 0 && bios == NULL + if (want_keep_alive != 0 && bios == NULL /* * Ask for persistent connection only if may need more round trips. * Do so even with disableConfirm because polling might be needed. @@ -23,8 +23,8 @@ static int keep_alive(int keep_alive, int body_type, BIO **bios) && body_type != OSSL_CMP_PKIBODY_P10CR && body_type != OSSL_CMP_PKIBODY_KUR && body_type != OSSL_CMP_PKIBODY_POLLREQ) - keep_alive = 0; - return keep_alive; + want_keep_alive = 0; + return want_keep_alive; } /* -- 2.47.3