main: Properly close down SSL/sqlite at shutdown if net_run never started up

This commit is contained in:
Tim Wojtulewicz 2019-08-26 10:31:17 -07:00
parent 7edebe179f
commit fa62e5b48c

View file

@ -1101,6 +1101,7 @@ int main(int argc, char** argv)
done_with_network();
net_delete();
}
terminate_bro();
@ -1113,11 +1114,6 @@ int main(int argc, char** argv)
// Close files after net_delete(), because net_delete()
// might write to connection content files.
BroFile::CloseOpenFiles();
}
else
{
terminate_bro();
}
delete rule_matcher;