diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-10-14 10:33:57 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-14 11:15:40 +0200 |
commit | 975a54dd86755600719bff8338d4e1b478930314 (patch) | |
tree | 29f92a8c607ef7db7d94ed7f73c42c0bea2a80fd /lib | |
parent | afd489885e0f497a6d4984638aace5904f71fa74 (diff) | |
download | curl-975a54dd86755600719bff8338d4e1b478930314.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_proxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c index 4f6b45490..82e282d29 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) |