mirror of
https://github.com/curl/curl.git
synced 2026-07-24 00:07:17 +03:00
http: return OOM errors from hsts properly
When Curl_hsts_parse() fails with out of memory, return it to parent. Closes #19862
This commit is contained in:
parent
9ec63d8565
commit
a3f4fd25d3
1 changed files with 4 additions and 1 deletions
|
|
@ -3501,8 +3501,11 @@ static CURLcode http_header_s(struct Curl_easy *data,
|
|||
if(v) {
|
||||
CURLcode check =
|
||||
Curl_hsts_parse(data->hsts, conn->host.name, v);
|
||||
if(check)
|
||||
if(check) {
|
||||
if(check == CURLE_OUT_OF_MEMORY)
|
||||
return check;
|
||||
infof(data, "Illegal STS header skipped");
|
||||
}
|
||||
#ifdef DEBUGBUILD
|
||||
else
|
||||
infof(data, "Parsed STS header fine (%zu entries)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue