Fix use-after-move of proc_status_file breaking -U flag

This commit is contained in:
Jon Siwek 2020-06-04 15:11:56 -07:00
parent 88654fa989
commit ef6bd3ee39
5 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,10 @@
3.2.0-dev.744 | 2020-06-04 15:11:56 -0700
* Fix use-after-move of proc_status_file breaking -U flag (Jon Siwek, Corelight)
* Change Cirrus CI config to use org-level secured variable (Jon Siwek, Corelight)
3.2.0-dev.742 | 2020-06-03 13:29:12 -0700
* GH-973: Fix the return type of topk_get_top()

View file

@ -1 +1 @@
3.2.0-dev.742
3.2.0-dev.744

View file

@ -457,7 +457,7 @@ zeek::detail::SetupResult zeek::detail::setup(int argc, char** argv,
}
if ( options.process_status_file )
proc_status_file = options.process_status_file->data();
proc_status_file = copy_string(options.process_status_file->data());
atexit(atexit_handler);
set_processing_status("INITIALIZING", "main");

View file

@ -0,0 +1 @@
TERMINATED [atexit]

View file

@ -0,0 +1,2 @@
# @TEST-EXEC: zeek -b -U status-file -e ''
# @TEST-EXEC: btest-diff status-file