mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Merge branch 'bug15245_026' into maint-0.2.6
This commit is contained in:
commit
1a1d431cff
2 changed files with 13 additions and 0 deletions
5
changes/bug15245
Normal file
5
changes/bug15245
Normal 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".
|
||||||
|
|
|
@ -178,6 +178,12 @@ update_state_threadfn(void *state_, void *work_)
|
||||||
void
|
void
|
||||||
cpuworkers_rotate_keyinfo(void)
|
cpuworkers_rotate_keyinfo(void)
|
||||||
{
|
{
|
||||||
|
if (!threadpool) {
|
||||||
|
/* If we're a client, then we won't have cpuworkers, and we won't need
|
||||||
|
* to tell them to rotate their state.
|
||||||
|
*/
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (threadpool_queue_update(threadpool,
|
if (threadpool_queue_update(threadpool,
|
||||||
worker_state_new,
|
worker_state_new,
|
||||||
update_state_threadfn,
|
update_state_threadfn,
|
||||||
|
@ -486,6 +492,8 @@ assign_onionskin_to_cpuworker(or_circuit_t *circ,
|
||||||
cpuworker_request_t req;
|
cpuworker_request_t req;
|
||||||
int should_time;
|
int should_time;
|
||||||
|
|
||||||
|
tor_assert(threadpool);
|
||||||
|
|
||||||
if (!circ->p_chan) {
|
if (!circ->p_chan) {
|
||||||
log_info(LD_OR,"circ->p_chan gone. Failing circ.");
|
log_info(LD_OR,"circ->p_chan gone. Failing circ.");
|
||||||
tor_free(onionskin);
|
tor_free(onionskin);
|
||||||
|
|
Loading…
Add table
Reference in a new issue