Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ZerXes
Tor
Commits
3519d0c8
Commit
3519d0c8
authored
Mar 23, 2018
by
Nick Mathewson
🐛
Browse files
Clear all control.c flags on control_free_all()
Fixes bug 25512.
parent
e263317e
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug25512
0 → 100644
View file @
3519d0c8
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.
src/or/control.c
View file @
3519d0c8
...
...
@@ -7602,6 +7602,11 @@ control_free_all(void)
bootstrap_percent
=
BOOTSTRAP_STATUS_UNDEF
;
notice_bootstrap_percent
=
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment