mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 01:00:13 +08:00
* 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:
parent
794b7b1dbe
commit
015afd7cc7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user