]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
keep_alive(): Do not shadow own function name
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Fri, 10 Oct 2025 13:11:43 +0000 (21:11 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 17 Oct 2025 17:14:19 +0000 (19:14 +0200)
Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28826)

crypto/cmp/cmp_http.c

index 809763e84613b052edb7d4dc05fdaed1f3eed32a..63de1314072cbf114ec6b61ae4f10d8f598c861a 100644 (file)
@@ -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;
 }
 
 /*