diff options
author | Roger Dingledine <arma@torproject.org> | 2012-10-03 23:56:34 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2012-10-03 23:56:34 -0400 |
commit | 10b43f4c46378c5d08aaba01ee00081c18002a44 (patch) | |
tree | 063de88bda8c427e6a1c891127364f1deb1c95da /src/or/circuitbuild.c | |
parent | 05f6f8f26d5911ec33e953f0c21ca56021bfe17d (diff) | |
download | tor-10b43f4c46378c5d08aaba01ee00081c18002a44.tar tor-10b43f4c46378c5d08aaba01ee00081c18002a44.tar.gz |
pass the reason from the truncated cell to the controller
(rather than just always declaring that the reason is
END_CIRC_REASON_OR_CONN_CLOSED)
resolves bug 7039.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 09eef64ef..be97b7c1c 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -2999,7 +2999,7 @@ circuit_finish_handshake(origin_circuit_t *circ, uint8_t reply_type, * just give up: for circ to close, and return 0. */ int -circuit_truncated(origin_circuit_t *circ, crypt_path_t *layer) +circuit_truncated(origin_circuit_t *circ, crypt_path_t *layer, int reason) { // crypt_path_t *victim; // connection_t *stream; @@ -3012,7 +3012,7 @@ circuit_truncated(origin_circuit_t *circ, crypt_path_t *layer) * just give up. */ circuit_mark_for_close(TO_CIRCUIT(circ), - END_CIRC_REASON_FLAG_REMOTE|END_CIRC_REASON_OR_CONN_CLOSED); + END_CIRC_REASON_FLAG_REMOTE|reason); return 0; #if 0 |