ngtcp2: fix coverity warning about result handling

Closes #17783
This commit is contained in:
Stefan Eissing 2025-06-30 09:07:54 +02:00 committed by Daniel Stenberg
parent c97a8f07d5
commit 4ccf3a31f5
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
9 changed files with 66 additions and 81 deletions

View file

@ -621,7 +621,7 @@ static CURLcode multi_done(struct Curl_easy *data,
after an error was detected */
bool premature)
{
CURLcode result, r2;
CURLcode result;
struct connectdata *conn = data->conn;
struct multi_done_ctx mdctx;
@ -670,9 +670,7 @@ static CURLcode multi_done(struct Curl_easy *data,
}
/* Make sure that transfer client writes are really done now. */
r2 = Curl_xfer_write_done(data, premature);
if(r2 && !result)
result = r2;
result = Curl_1st_err(result, Curl_xfer_write_done(data, premature));
/* Inform connection filters that this transfer is done */
Curl_conn_ev_data_done(data, premature);