rustls: simplify init err path

Closes #19759
This commit is contained in:
Daniel McCarney 2025-11-29 09:30:48 -05:00 committed by Daniel Stenberg
parent db32c0721f
commit 985f86f0be
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -744,9 +744,7 @@ init_config_builder_verifier(struct Curl_easy *data,
if(rr != RUSTLS_RESULT_OK) {
rustls_failf(data, rr, "failed to build trusted root certificate store");
result = CURLE_SSL_CACERT_BADFILE;
if(result) {
goto cleanup;
}
goto cleanup;
}
verifier_builder = rustls_web_pki_server_cert_verifier_builder_new(roots);