From 8dc4493d54f235dc7b67a1f11d96ba7876c192ef Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 16 Jun 2024 11:07:40 +0200 Subject: [PATCH] x509asn1: make Curl_extract_certinfo store error message To help us all better understand where the error actually comes from. Ref: #13958 Closes #13959 --- lib/vtls/x509asn1.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.47.3