]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
openssl: clear retry flag on x509 error
authorStefan Eissing <stefan@eissing.org>
Thu, 25 Sep 2025 10:11:15 +0000 (12:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Sep 2025 12:10:00 +0000 (14:10 +0200)
When loading the trust anchors and encountering an error, clear
a possibly set retry flag.

Reported in Joshua's sarif data

Closes #18724

lib/vtls/openssl.c

index 4d37f5e77f20dd30d9ac5ba35910b0e56c64a424..1048bf5751c1c40a6e101343a439fb9272e38040 100644 (file)
@@ -741,6 +741,7 @@ static int ossl_bio_cf_in_read(BIO *bio, char *buf, int blen)
   if(!octx->x509_store_setup) {
     r2 = Curl_ssl_setup_x509_store(cf, data, octx->ssl_ctx);
     if(r2) {
+      BIO_clear_retry_flags(bio);
       octx->io_result = r2;
       return -1;
     }