diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-02 17:48:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-02 17:48:17 +0000 |
commit | 6f3c6d128973253218a476cba9207c737b93d759 (patch) | |
tree | 30f2e3e64d7994e7785b9f078bb5f579bf03544f /src/or/cpuworker.c | |
parent | a1e4c6dc853c4e2dba534e04045c1d15fd1f15b6 (diff) | |
download | tor-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.c | 4 |
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."); |