]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http_proxy: fix one more result assign for hyper
authorDaniel Stenberg <daniel@haxx.se>
Thu, 14 Oct 2021 08:33:57 +0000 (10:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Oct 2021 09:15:40 +0000 (11:15 +0200)
and remove the bad assert again, since it was run even with no error!

Closes #7854

lib/http_proxy.c

index 4f6b454900ee460c54da060529b8f47092902ca4..82e282d293721ad816ba0e49d3127409e3d7ef71 100644 (file)
@@ -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)