mirror of
https://github.com/curl/curl.git
synced 2026-01-27 01:44:17 +00:00
http_add_connection_hd: respect previous error
Pointed out by CodeSonar Closes #18472
This commit is contained in:
parent
5ef4451f7b
commit
31659b4a7a
@ -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…
x
Reference in New Issue
Block a user