Browse Source

Fix crash bug when calling cpuworkers_rotate_keyinfo on a client.

Fixes bug 15245; bugfix on 0.2.6.3-alpha. Thanks to anonym for reporting!
Nick Mathewson 10 years ago
parent
commit
66c8180207
2 changed files with 7 additions and 0 deletions
  1. 5 0
      changes/bug15245
  2. 2 0
      src/or/cpuworker.c

+ 5 - 0
changes/bug15245

@@ -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".
+

+ 2 - 0
src/or/cpuworker.c

@@ -178,6 +178,8 @@ update_state_threadfn(void *state_, void *work_)
 void
 void
 cpuworkers_rotate_keyinfo(void)
 cpuworkers_rotate_keyinfo(void)
 {
 {
+  if (!threadpool)
+    return;
   if (threadpool_queue_update(threadpool,
   if (threadpool_queue_update(threadpool,
                               worker_state_new,
                               worker_state_new,
                               update_state_threadfn,
                               update_state_threadfn,