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

@ -3962,9 +3962,8 @@ static CURLcode http_on_response(struct Curl_easy *data,
out:
if(last_hd) {
/* if not written yet, write it now */
CURLcode r2 = http_write_header(data, last_hd, last_hd_len);
if(!result)
result = r2;
result = Curl_1st_err(
result, http_write_header(data, last_hd, last_hd_len));
}
return result;
}