diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-01-24 12:02:44 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-01-31 14:37:09 -0500 |
commit | da778f2921d0ae49c47abb4ba4ebe5f92a999ae2 (patch) | |
tree | 4549ef8e40fee3d9245b8bf35e0bddb0487914c3 /src/or/main.c | |
parent | 37f26aa4700eefa59bb548065dcbb4b98add9a55 (diff) | |
download | tor-da778f2921d0ae49c47abb4ba4ebe5f92a999ae2.tar.gz tor-da778f2921d0ae49c47abb4ba4ebe5f92a999ae2.zip |
Use thread-safe types to store the LOG_PROTOCOL_WARN severity
Fixes a race condition; resolves 23954.
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index 10e606f3ac..841a372551 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -4009,6 +4009,7 @@ tor_run_main(const tor_main_configuration_t *tor_cfg) #endif /* defined(_WIN32) */ configure_backtrace_handler(get_version()); + init_protocol_warning_severity_level(); update_approx_time(time(NULL)); tor_threads_init(); |