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/test/fuzz | |
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/test/fuzz')
-rw-r--r-- | src/test/fuzz/fuzzing_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/fuzz/fuzzing_common.c b/src/test/fuzz/fuzzing_common.c index 1d54e41dbd..7c9fac748b 100644 --- a/src/test/fuzz/fuzzing_common.c +++ b/src/test/fuzz/fuzzing_common.c @@ -152,6 +152,8 @@ main(int argc, char **argv) } } + init_protocol_warning_severity_level(); + { log_severity_list_t s; memset(&s, 0, sizeof(s)); |