curl: Pass cert chain on even if we get no headers

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-05-04 18:29:46 +01:00
parent bb5d5562bc
commit 754e3f4f8c
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74

View File

@ -1310,6 +1310,10 @@ static void fetch_curl_done(CURL *curl_handle, CURLcode result)
fetch_curl_stop(f); fetch_curl_stop(f);
if (f->sent_ssl_chain == false) {
fetch_curl_report_certs_upstream(f);
}
if (abort_fetch) { if (abort_fetch) {
; /* fetch was aborted: no callback */ ; /* fetch was aborted: no callback */
} else if (finished) { } else if (finished) {