aboutsummaryrefslogtreecommitdiff
path: root/src/or/cpuworker.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-02 17:48:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-02 17:48:17 +0000
commit6f3c6d128973253218a476cba9207c737b93d759 (patch)
tree30f2e3e64d7994e7785b9f078bb5f579bf03544f /src/or/cpuworker.c
parenta1e4c6dc853c4e2dba534e04045c1d15fd1f15b6 (diff)
downloadtor-6f3c6d128973253218a476cba9207c737b93d759.tar
tor-6f3c6d128973253218a476cba9207c737b93d759.tar.gz
Split out mark_for_close with circuits. Seems to work for me.
svn:r1197
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r--src/or/cpuworker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c
index 98dd388ba..e3395e0b1 100644
--- a/src/or/cpuworker.c
+++ b/src/or/cpuworker.c
@@ -93,12 +93,12 @@ int connection_cpu_process_inbuf(connection_t *conn) {
assert(circ->p_conn);
if(*buf == 0) {
log_fn(LOG_WARN,"decoding onionskin failed. Closing.");
- circuit_close(circ);
+ circuit_mark_for_close(circ);
goto done_processing;
}
if(onionskin_answer(circ, buf+1+TAG_LEN, buf+1+TAG_LEN+ONIONSKIN_REPLY_LEN) < 0) {
log_fn(LOG_WARN,"onionskin_answer failed. Closing.");
- circuit_close(circ);
+ circuit_mark_for_close(circ);
goto done_processing;
}
log_fn(LOG_DEBUG,"onionskin_answer succeeded. Yay.");