From: Daniel Stenberg Date: Sun, 19 Oct 2025 13:25:52 +0000 (+0200) Subject: openssl: remove dead code X-Git-Tag: curl-8_17_0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00cb679c04ef9e0f30bd99c9dcc58c1e1928c01a;p=thirdparty%2Fcurl.git openssl: remove dead code A condition in infof_certstack() would always equal true after a previous change. Follow-up to e2a4de8a607d3c7f52918ef50ab6411c75 Pointed out by Coverity Closes #19142 --- diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index c580d6cc67..f62f99cc86 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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;