From: Yedaya Katsman Date: Sun, 22 Jun 2025 13:02:28 +0000 (+0300) Subject: rustls: don't try printing the not provided file X-Git-Tag: curl-8_15_0~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8128a17e714049c446e60b3f20d7f903c392b398;p=thirdparty%2Fcurl.git rustls: don't try printing the not provided file Caught by gcc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0: ``` vtls/rustls.c: In function ‘cr_connect’: vtls/rustls.c:857:61: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 857 | failf(data, "rustls: must provide certificate with key '%s'", | ^~ ``` Closes #17704 --- diff --git a/lib/vtls/rustls.c b/lib/vtls/rustls.c index 24f646078d..ca318d5f4e 100644 --- a/lib/vtls/rustls.c +++ b/lib/vtls/rustls.c @@ -855,7 +855,7 @@ init_config_builder_client_auth(struct Curl_easy *data, } else if(!conn_config->clientcert && ssl_config->key) { failf(data, "rustls: must provide certificate with key '%s'", - conn_config->clientcert); + ssl_config->key); return CURLE_SSL_CERTPROBLEM; }