aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-09-12 06:18:38 +0000
committerRoger Dingledine <arma@torproject.org>2003-09-12 06:18:38 +0000
commit556bea4b6d807099e90a3f0c6615d7e500b83424 (patch)
treebc2fbcd914393f0677b2b0877773ab3a820d4c53 /src
parent001cd08b2eeef9ac43b63fb1e69b4947eca85b21 (diff)
downloadtor-556bea4b6d807099e90a3f0c6615d7e500b83424.tar
tor-556bea4b6d807099e90a3f0c6615d7e500b83424.tar.gz
serious bug in cpuworker. need to think about redesign or how to handle it.
svn:r448
Diffstat (limited to 'src')
-rw-r--r--src/or/cpuworker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 0b92733f2..9d88afab6 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -55,6 +55,7 @@ int connection_cpu_process_inbuf(connection_t *conn) {
connection_fetch_from_buf(buf,LEN_ONION_RESPONSE,conn);
+ /* XXX conn->circ might already have been closed. Serious bug. Suck. */
if(*buf == 0 || conn->circ->p_conn == NULL ||
onionskin_process(conn->circ, buf+1, buf+1+DH_KEY_LEN) < 0) {
log_fn(LOG_DEBUG,"decoding onion, onionskin_process, or p_conn failed. Closing.");