← Commit list

8940c1436b

Stefan Eissing
Stefan Eissing
2026-09-24
SUCCESS Duration: 437s

Subject

cw-out: recheck callbacks for each call

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/cw-out.c+6 -0
@@ -267,6 +267,12 @@ static CURLcode cw_out_ptr_flush(struct cw_out_ctx *ctx,
*pconsumed += nwritten;
blen -= nwritten;
buf += nwritten;
+ /* write functions/data may have been re-setopt'ed. sigh. */
+ cw_get_writefunc(data, otype, &wcb, &wcb_data, &max_write, &min_write);
+ if(!wcb) {
+ *pconsumed += blen;
+ break;
+ }
}
}
return CURLE_OK;