]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
x509asn1: make Curl_extract_certinfo store error message
authorDaniel Stenberg <daniel@haxx.se>
Sun, 16 Jun 2024 09:07:40 +0000 (11:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 16 Jun 2024 21:48:11 +0000 (23:48 +0200)
To help us all better understand where the error actually comes from.

Ref: #13958
Closes #13959

lib/vtls/x509asn1.c

index 0ba81ee5c1f9ae2ad0b5940b40c6e1b61cb4cc3b..cea88e668fd031cdeec458afab4e6d3c71572e6c 100644 (file)
@@ -1228,6 +1228,8 @@ CURLcode Curl_extract_certinfo(struct Curl_easy *data,
       result = ssl_push_certinfo_dyn(data, certnum, "Cert", &out);
 
 done:
+  if(result)
+    failf(data, "Failed extracting certificate chain");
   Curl_dyn_free(&out);
   return result;
 }