From 7da29df6d34bca163f320dd792815b19c4f91033 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Mar 2022 16:55:54 +0100 Subject: [PATCH] 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 --- lib/c-hyper.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.47.3