diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-01-05 21:23:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-01-05 21:23:03 +0000 |
commit | 878962bee11eb47042d49ebd7df0d18d403c98c0 (patch) | |
tree | 04b1c7ef50ea43a81b1b2b3536fb5b00584d88ed /src/or/cpuworker.c | |
parent | d8e3bc02884cfb85f113e44c9f61a1035789f0bc (diff) | |
download | tor-878962bee11eb47042d49ebd7df0d18d403c98c0.tar.gz tor-878962bee11eb47042d49ebd7df0d18d403c98c0.zip |
Add reasons to DESTROY and RELAY_TRUNCATED cells.
svn:r5734
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 de5b33a4da..ad07852530 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -169,7 +169,7 @@ connection_cpu_process_inbuf(connection_t *conn) debug(LD_OR, "decoding onionskin failed. (Old key or bad software.) Closing."); if (circ) - circuit_mark_for_close(circ); + circuit_mark_for_close(circ, END_CIRC_REASON_TORPROTOCOL); goto done_processing; } if (!circ) { @@ -185,7 +185,7 @@ connection_cpu_process_inbuf(connection_t *conn) if (onionskin_answer(circ, CELL_CREATED, buf+TAG_LEN, buf+TAG_LEN+ONIONSKIN_REPLY_LEN) < 0) { warn(LD_OR,"onionskin_answer failed. Closing."); - circuit_mark_for_close(circ); + circuit_mark_for_close(circ, END_CIRC_REASON_INTERNAL); goto done_processing; } debug(LD_OR,"onionskin_answer succeeded. Yay."); |