From: Daniel Stenberg Date: Thu, 14 Oct 2021 08:33:57 +0000 (+0200) Subject: http_proxy: fix one more result assign for hyper X-Git-Tag: curl-7_80_0~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=975a54dd86755600719bff8338d4e1b478930314;p=thirdparty%2Fcurl.git http_proxy: fix one more result assign for hyper and remove the bad assert again, since it was run even with no error! Closes #7854 --- diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 4f6b454900..82e282d293 100644 --- a/lib/http_proxy.c +++ b/lib/http_proxy.c @@ -735,6 +735,7 @@ static CURLcode CONNECT(struct Curl_easy *data, io = hyper_io_new(); if(!io) { failf(data, "Couldn't create hyper IO"); + result = CURLE_OUT_OF_MEMORY; goto error; } /* tell Hyper how to read/write network data */ @@ -966,7 +967,6 @@ static CURLcode CONNECT(struct Curl_easy *data, } } error: - DEBUGASSERT(result); free(host); free(hostheader); if(io)