[tor-commits] [tor/maint-0.2.6] Also, add an assertion to assign_onionskin_to_cpuworker

nickm at torproject.org nickm at torproject.org
Thu Mar 12 15:37:38 UTC 2015


commit 648af0438d4a293f12b649afc47dd947a7666a05
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Mar 12 11:15:50 2015 -0400

    Also, add an assertion to assign_onionskin_to_cpuworker
---
 src/or/cpuworker.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 588eae9..e3781ad 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -488,6 +488,8 @@ assign_onionskin_to_cpuworker(or_circuit_t *circ,
   cpuworker_request_t req;
   int should_time;
 
+  tor_assert(threadpool);
+
   if (!circ->p_chan) {
     log_info(LD_OR,"circ->p_chan gone. Failing circ.");
     tor_free(onionskin);





More information about the tor-commits mailing list