mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
Set terminating flag during fuzzer cleanup
This commit is contained in:
parent
d449682ff0
commit
5a2d25c954
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,7 @@ namespace zeek {
|
||||||
|
|
||||||
void fuzz_cleanup_one_input()
|
void fuzz_cleanup_one_input()
|
||||||
{
|
{
|
||||||
|
terminating = true;
|
||||||
broker_mgr->ClearStores();
|
broker_mgr->ClearStores();
|
||||||
file_mgr->Terminate();
|
file_mgr->Terminate();
|
||||||
timer_mgr->Expire();
|
timer_mgr->Expire();
|
||||||
|
@ -54,6 +55,7 @@ void fuzz_cleanup_one_input()
|
||||||
sessions->Drain();
|
sessions->Drain();
|
||||||
mgr.Drain();
|
mgr.Drain();
|
||||||
sessions->Clear();
|
sessions->Clear();
|
||||||
|
terminating = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace zeek
|
} // namespace zeek
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue