* src/http.c (http_cleanup): Reset wget_cookie_jar after freeing

This silences the wget_options_fuzzer which triggered #28610 on
OSS-Fuzz. This issue can not happen with the Wget utility.
The fuzzer runs main(),...,cleanup() in a loop which the Wget utility
never does.
This commit is contained in:
Tim Rühsen 2020-12-13 18:23:33 +01:00
parent 794b7b1dbe
commit 015afd7cc7

View File

@ -5345,7 +5345,10 @@ http_cleanup (void)
invalidate_persistent ();
if (wget_cookie_jar)
cookie_jar_delete (wget_cookie_jar);
{
cookie_jar_delete (wget_cookie_jar);
wget_cookie_jar = NULL;
}
if (basic_authed_hosts)
{