[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 648af0438d4a293f12b649afc47dd947a7666a05
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits