]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
rustls: simplify init err path
authorDaniel McCarney <daniel@binaryparadox.net>
Sat, 29 Nov 2025 14:30:48 +0000 (09:30 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 29 Nov 2025 21:47:22 +0000 (22:47 +0100)
Closes #19759

lib/vtls/rustls.c

index 0c13cc81eebb9944399a2ad5f8176ba4d3908ff5..360a2454ac85273430560a1232b0ec76d4eb186c 100644 (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);