mirror of
https://github.com/curl/curl.git
synced 2026-04-23 06:22:12 +03:00
http_add_connection_hd: respect previous error
Pointed out by CodeSonar Closes #18472
This commit is contained in:
parent
5ef4451f7b
commit
31659b4a7a
1 changed files with 1 additions and 1 deletions
|
|
@ -2657,7 +2657,7 @@ static CURLcode http_add_connection_hd(struct Curl_easy *data,
|
|||
if(!result && data->state.http_hd_h2_settings) {
|
||||
result = curlx_dyn_addf(req, "%s%s", sep, "HTTP2-Settings");
|
||||
}
|
||||
if(rlen < curlx_dyn_len(req))
|
||||
if(!result && (rlen < curlx_dyn_len(req)))
|
||||
result = curlx_dyn_addn(req, STRCONST("\r\n"));
|
||||
|
||||
free(custom_val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue