From: Daniel Stenberg Date: Thu, 10 Mar 2022 15:55:54 +0000 (+0100) Subject: hyper: fix status_line() return code X-Git-Tag: curl-7_83_0~164 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7da29df6d34bca163f320dd792815b19c4f91033;p=thirdparty%2Fcurl.git hyper: fix status_line() return code Detected while working on #7708 that happened to trigger an error here with a new test case. Closes #8572 --- diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 8015de25bc..b795a47fed 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -293,10 +293,8 @@ static CURLcode status_line(struct Curl_easy *data, writetype |= CLIENTWRITE_BODY; result = Curl_client_write(data, writetype, Curl_dyn_ptr(&data->state.headerb), len); - if(result) { - data->state.hresult = CURLE_ABORTED_BY_CALLBACK; - return HYPER_ITER_BREAK; - } + if(result) + return result; } data->info.header_size += (long)len; data->req.headerbytecount += (long)len;