diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-06 15:19:32 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-06 15:19:32 +0000 |
commit | 9cbaf4603d56a521b9d6e82489cd5aea624a395b (patch) | |
tree | 2f16eecbcba87929a4910556c4c04f5b85919aae /src/or/cpuworker.c | |
parent | 88dc243bb53d8e3a320d04ce525452e692df4fb6 (diff) | |
download | tor-9cbaf4603d56a521b9d6e82489cd5aea624a395b.tar.gz tor-9cbaf4603d56a521b9d6e82489cd5aea624a395b.zip |
fix an assert trigger: when we have the rare case of accepting
a conn on 0.0.0.0:0, then when we look through the connection array,
we'll find any of the workers. this is no good.
svn:r4027
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index e820f939be..c2a7fe4f5b 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -141,10 +141,10 @@ int connection_cpu_process_inbuf(connection_t *conn) { /* parse out the circ it was talking about */ tag_unpack(buf, &addr, &port, &circ_id); circ = NULL; - /* (Here we use connection_exact_get_by_addr_port rather than + /* (Here we use connection_or_exact_get_by_addr_port rather than * get_by_identity_digest: we want a specific port here in * case there are multiple connections.) */ - p_conn = connection_exact_get_by_addr_port(addr,port); + p_conn = connection_or_exact_get_by_addr_port(addr,port); if (p_conn) circ = circuit_get_by_circid_orconn(circ_id, p_conn); @@ -356,8 +356,8 @@ static void process_pending_task(connection_t *cpuworker) { log_fn(LOG_WARN,"assign_to_cpuworker failed. Ignoring."); } -/** if cpuworker is defined, assert that he's idle, and use him. else, - * look for an idle cpuworker and use him. if none idle, queue task onto +/** If cpuworker is defined, assert that he's idle, and use him. Else, + * look for an idle cpuworker and use him. If none idle, queue task onto * the pending onion list and return. * If question_type is CPUWORKER_TASK_ONION then task is a circ. * No other question_types are allowed. |