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
This commit is contained in:
Yedaya Katsman 2025-06-22 16:02:28 +03:00 committed by Daniel Stenberg
parent 83a8818cfe
commit 8128a17e71
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;
}