rustls: pass the correct result to rustls_failf

Reported-by: Joshua Rogers
Closes #18961
This commit is contained in:
Stefan Eissing 2025-10-09 09:55:38 +02:00 committed by Daniel Stenberg
parent 801ebf1e1a
commit 83bed97ad8
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -1103,7 +1103,7 @@ cr_init_backend(struct Curl_cfilter *cf, struct Curl_easy *data,
connssl->peer.hostname,
&rconn);
if(rr != RUSTLS_RESULT_OK) {
rustls_failf(data, result, "rustls_client_connection_new");
rustls_failf(data, rr, "rustls_client_connection_new");
return CURLE_COULDNT_CONNECT;
}
DEBUGASSERT(rconn);