mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 02:09:24 +01:00
Clear all control.c flags on control_free_all()
Fixes bug 25512.
This commit is contained in:
parent
e263317e07
commit
3519d0c808
5
changes/bug25512
Normal file
5
changes/bug25512
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Minor bugfixes (restart-in-process):
|
||||||
|
- When shutting down, Tor now clears all the flags in the control.c
|
||||||
|
module. This should prevent a bug where authentication cookies
|
||||||
|
are not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
|
||||||
|
|
@ -7602,6 +7602,11 @@ control_free_all(void)
|
|||||||
bootstrap_percent = BOOTSTRAP_STATUS_UNDEF;
|
bootstrap_percent = BOOTSTRAP_STATUS_UNDEF;
|
||||||
notice_bootstrap_percent = 0;
|
notice_bootstrap_percent = 0;
|
||||||
bootstrap_problems = 0;
|
bootstrap_problems = 0;
|
||||||
|
authentication_cookie_is_set = 0;
|
||||||
|
global_event_mask = 0;
|
||||||
|
disable_log_messages = 0;
|
||||||
|
memset(last_sent_bootstrap_message, 0, sizeof(last_sent_bootstrap_message));
|
||||||
|
flush_queued_event_pending = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TOR_UNIT_TESTS
|
#ifdef TOR_UNIT_TESTS
|
||||||
|
Loading…
Reference in New Issue
Block a user