mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
stop freeing the new global options list whenever we update it.
svn:r4853
This commit is contained in:
parent
237f58524f
commit
a47765a16d
@ -364,12 +364,14 @@ set_options(or_options_t *new_val)
|
||||
{
|
||||
or_options_t *old_options = global_options;
|
||||
global_options = new_val;
|
||||
/* Note that we pass the *old* options below, for comparison. It
|
||||
* pulls the new options directly out of global_options. */
|
||||
if (options_act(old_options) < 0) { /* acting on the options failed. die. */
|
||||
log_fn(LOG_ERR,"Acting on config options left us in a broken state. Dying.");
|
||||
exit(1);
|
||||
}
|
||||
if (old_options)
|
||||
config_free(&options_format, global_options);
|
||||
config_free(&options_format, old_options);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user