mirror of
https://github.com/curl/curl.git
synced 2026-05-17 18:06:21 +03:00
awssiv4: avoid freeing the date pointer on error
Since it was not allocated, don't free it even if it was wrong syntax
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61908
Follow-up to b137634ba3
Closes #11782
This commit is contained in:
parent
289cd4073c
commit
b8dabfb1e1
1 changed files with 3 additions and 1 deletions
|
|
@ -220,8 +220,10 @@ static CURLcode make_headers(struct Curl_easy *data,
|
|||
char *value;
|
||||
|
||||
value = strchr(*date_header, ':');
|
||||
if(!value)
|
||||
if(!value) {
|
||||
*date_header = NULL;
|
||||
goto fail;
|
||||
}
|
||||
++value;
|
||||
while(ISBLANK(*value))
|
||||
++value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue