Skip to content
Snippets Groups Projects
Commit c4d0d9bd authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Merge branch 'bug26948_033' into maint-0.3.3

parents 00536254 a67d153c
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes (in-process restart):
- Always call tor_free_all() when leaving tor_run_main(). When we
did not, restarting tor in-process would cause an assertion failure.
Fixes bug 26948; bugfix on 0.3.3.1-alpha.
......@@ -4035,10 +4035,10 @@ tor_run_main(const tor_main_configuration_t *tor_cfg)
#endif /* defined(NT_SERVICE) */
{
int init_rv = tor_init(argc, argv);
if (init_rv < 0)
return -1;
else if (init_rv > 0)
return 0;
if (init_rv) {
tor_free_all(0);
return (init_rv < 0) ? -1 : 0;
}
}
if (get_options()->Sandbox && get_options()->command == CMD_RUN_TOR) {
......@@ -4046,6 +4046,7 @@ tor_run_main(const tor_main_configuration_t *tor_cfg)
if (sandbox_init(cfg)) {
log_err(LD_BUG,"Failed to create syscall sandbox filter");
tor_free_all(0);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment