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
This commit is contained in:
Daniel Stenberg 2021-10-14 10:33:57 +02:00
parent afd489885e
commit 975a54dd86
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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)