mirror of
https://github.com/curl/curl.git
synced 2026-08-06 07:16:14 +03:00
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:
parent
83a8818cfe
commit
8128a17e71
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue