]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cw-out: fix EAGAIN handling on pause
authorStefan Eissing <stefan@eissing.org>
Mon, 3 Nov 2025 14:07:57 +0000 (15:07 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Nov 2025 15:10:20 +0000 (16:10 +0100)
The interim CURLE_AGAIN result was not always converted to a
CURLE_OK and then caused write callers to report a failure.

Fixes #19334
Reported-by: pennae on github
Closes #19338

lib/cw-out.c

index 1f40316492673d1aa3bbd235eae0a125e467e7ab..9c0a36e7e5e2850cdac6dccd829a2299f31110ba 100644 (file)
@@ -302,6 +302,7 @@ static CURLcode cw_out_buf_flush(struct cw_out_ctx *ctx,
                               &consumed);
     if(result && (result != CURLE_AGAIN))
       return result;
+    result = CURLE_OK;
 
     if(consumed) {
       if(consumed == curlx_dyn_len(&cwbuf->b)) {