From: Daniel Stenberg Date: Sun, 16 Jun 2024 09:07:40 +0000 (+0200) Subject: x509asn1: make Curl_extract_certinfo store error message X-Git-Tag: curl-8_9_0~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8dc4493d54f235dc7b67a1f11d96ba7876c192ef;p=thirdparty%2Fcurl.git x509asn1: make Curl_extract_certinfo store error message To help us all better understand where the error actually comes from. Ref: #13958 Closes #13959 --- diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c index 0ba81ee5c1..cea88e668f 100644 --- a/lib/vtls/x509asn1.c +++ b/lib/vtls/x509asn1.c @@ -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; }