mirror of
https://github.com/curl/curl.git
synced 2026-08-25 23:23:31 +03:00
lib: always use Curl_1st_fatal instead of Curl_1st_err
Curl_1st_err() does not return the second error if the first result is CURLE_AGAIN. This may cause errors to not become noticeable when they should be. Replace all use of Curl_1st_err() with Curl_1st_fatal(), which handles CURLE_AGAIN as a not-a-real-error case. Closes #20980
This commit is contained in:
parent
77c5470147
commit
41aaac61e2
7 changed files with 11 additions and 21 deletions
|
|
@ -4169,7 +4169,7 @@ static CURLcode http_on_response(struct Curl_easy *data,
|
|||
out:
|
||||
if(last_hd) {
|
||||
/* if not written yet, write it now */
|
||||
result = Curl_1st_err(
|
||||
result = Curl_1st_fatal(
|
||||
result, http_write_header(data, last_hd, last_hd_len));
|
||||
}
|
||||
if(conn_changed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue