mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
main: Properly close down SSL/sqlite at shutdown if net_run never started up
This commit is contained in:
parent
7edebe179f
commit
fa62e5b48c
1 changed files with 12 additions and 16 deletions
28
src/main.cc
28
src/main.cc
|
@ -1101,24 +1101,20 @@ int main(int argc, char** argv)
|
|||
|
||||
done_with_network();
|
||||
net_delete();
|
||||
|
||||
terminate_bro();
|
||||
|
||||
sqlite3_shutdown();
|
||||
|
||||
ERR_free_strings();
|
||||
EVP_cleanup();
|
||||
CRYPTO_cleanup_all_ex_data();
|
||||
|
||||
// Close files after net_delete(), because net_delete()
|
||||
// might write to connection content files.
|
||||
BroFile::CloseOpenFiles();
|
||||
}
|
||||
else
|
||||
{
|
||||
terminate_bro();
|
||||
}
|
||||
|
||||
terminate_bro();
|
||||
|
||||
sqlite3_shutdown();
|
||||
|
||||
ERR_free_strings();
|
||||
EVP_cleanup();
|
||||
CRYPTO_cleanup_all_ex_data();
|
||||
|
||||
// Close files after net_delete(), because net_delete()
|
||||
// might write to connection content files.
|
||||
BroFile::CloseOpenFiles();
|
||||
|
||||
delete rule_matcher;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue