mirror of
https://github.com/curl/curl.git
synced 2026-05-30 07:37:33 +03:00
cw-out: unify the error handling pattern in cw_out_do_write
to proper set the error status and release resource Closes #19195
This commit is contained in:
parent
9e15b07638
commit
28ebaf86ce
1 changed files with 1 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ static CURLcode cw_out_do_write(struct cw_out_ctx *ctx,
|
|||
/* still have buffered data, append and flush */
|
||||
result = cw_out_append(ctx, data, otype, buf, blen);
|
||||
if(result)
|
||||
return result;
|
||||
goto out;
|
||||
result = cw_out_flush_chain(ctx, data, &ctx->buf, flush_all);
|
||||
if(result)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue