From: Daniel Stenberg Date: Fri, 20 Jun 2025 11:38:22 +0000 (+0200) Subject: http: explicitly ignore parsing errors for Retry-After X-Git-Tag: curl-8_15_0~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e60103cbb861e1feff8497b7d87827666a866a1f;p=thirdparty%2Fcurl.git http: explicitly ignore parsing errors for Retry-After Add (void) and explain in comment. Closes #17682 --- diff --git a/lib/http.c b/lib/http.c index a2b202f588..112911b5f4 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3293,8 +3293,8 @@ static CURLcode http_header_r(struct Curl_easy *data, retry_after = date - current; } else - /* Try it as a decimal number */ - curlx_str_number(&v, &retry_after, CURL_OFF_T_MAX); + /* Try it as a decimal number, ignore errors */ + (void)curlx_str_number(&v, &retry_after, CURL_OFF_T_MAX); /* limit to 6 hours max. this is not documented so that it can be changed in the future if necessary. */ if(retry_after > 21600)