]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix crash bug when calling cpuworkers_rotate_keyinfo on a client.
authorNick Mathewson <nickm@torproject.org>
Thu, 12 Mar 2015 15:13:57 +0000 (11:13 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 12 Mar 2015 15:14:39 +0000 (11:14 -0400)
Fixes bug 15245; bugfix on 0.2.6.3-alpha. Thanks to anonym for reporting!

changes/bug15245 [new file with mode: 0644]
src/or/cpuworker.c

diff --git a/changes/bug15245 b/changes/bug15245
new file mode 100644 (file)
index 0000000..520a370
--- /dev/null
@@ -0,0 +1,5 @@
+  o Major bugfixes:
+    - Avoid crashing when making certain configuration option changes
+      on clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
+      by "anonym".
+
index 09ffdb81d10194b95d77d1fb9fc3dba71e136cd6..588eae9fc809f7ecdca5e0500cdd1797d95064ca 100644 (file)
@@ -178,6 +178,8 @@ update_state_threadfn(void *state_, void *work_)
 void
 cpuworkers_rotate_keyinfo(void)
 {
+  if (!threadpool)
+    return;
   if (threadpool_queue_update(threadpool,
                               worker_state_new,
                               update_state_threadfn,