Selaa lähdekoodia

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 9 vuotta sitten
vanhempi
commit
66c8180207
2 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  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
 cpuworkers_rotate_keyinfo(void)
 {
+  if (!threadpool)
+    return;
   if (threadpool_queue_update(threadpool,
                               worker_state_new,
                               update_state_threadfn,