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!
This commit is contained in:
Nick Mathewson 2015-03-12 11:13:57 -04:00
parent 354897a13e
commit 66c8180207
2 changed files with 7 additions and 0 deletions

5
changes/bug15245 Normal file
View File

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

View 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,