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:
Daniel Stenberg 2023-09-01 10:35:40 +02:00
parent 289cd4073c
commit b8dabfb1e1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;