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
@ -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…
Reference in New Issue
Block a user