x509asn1: make Curl_extract_certinfo store error message

To help us all better understand where the error actually comes from.

Ref: #13958
Closes #13959
This commit is contained in:
Daniel Stenberg 2024-06-16 11:07:40 +02:00
parent 92f42761d2
commit 8dc4493d54
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}