]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: remove dead code
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 13:25:52 +0000 (15:25 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 21:48:28 +0000 (23:48 +0200)
A condition in infof_certstack() would always equal true after a
previous change.

Follow-up to e2a4de8a607d3c7f52918ef50ab6411c75

Pointed out by Coverity
Closes #19142

lib/vtls/openssl.c

index c580d6cc67af5468c5c6100be043795b34c7622e..f62f99cc86c1fc00d02fc0f7af3be6a81a1d238e 100644 (file)
@@ -4898,7 +4898,7 @@ static void infof_certstack(struct Curl_easy *data, const SSL *ssl)
       curl_msnprintf(group_name_final, sizeof(group_name_final), "/%s",
                      group_name);
     }
-    type_name = current_pkey ? EVP_PKEY_get0_type_name(current_pkey) : NULL;
+    type_name = EVP_PKEY_get0_type_name(current_pkey);
 #else
     get_group_name = 0;
     type_name = NULL;