From 8128a17e714049c446e60b3f20d7f903c392b398 Mon Sep 17 00:00:00 2001 From: Yedaya Katsman Date: Sun, 22 Jun 2025 16:02:28 +0300 Subject: [PATCH] rustls: don't try printing the not provided file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/vtls/rustls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }