openssl: remove dead code

A condition in infof_certstack() would always equal true after a
previous change.

Follow-up to e2a4de8a60

Pointed out by Coverity
Closes #19142
This commit is contained in:
Daniel Stenberg 2025-10-19 15:25:52 +02:00
parent d3b2ba92c7
commit 00cb679c04
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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;