aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-17 15:20:00 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-17 15:20:00 +0000
commitb713b370bfdd2be8f1456d11f7e087c9cf7cdee7 (patch)
tree2f9e2c06a9f0a042f56b06a96f66456fde68d07b /src/or/circuitbuild.c
parente3b1d059c7f17bf82cf9ac80a50642bb4db6dffe (diff)
downloadtor-b713b370bfdd2be8f1456d11f7e087c9cf7cdee7.tar.gz
tor-b713b370bfdd2be8f1456d11f7e087c9cf7cdee7.zip
r9060@totoro: nickm | 2006-10-17 11:12:48 -0400
Apply patch from Mike Perry: add more reasons for circuit destroys. (Slightly tweaked to avoid allocating a number for an "internal" reason.) svn:r8739
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 8d76e6a341..239c4e198c 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -305,8 +305,7 @@ circuit_establish_circuit(uint8_t purpose, extend_info_t *info,
if (onion_pick_cpath_exit(circ, info) < 0 ||
onion_populate_cpath(circ) < 0) {
- /* XXX should there be a 'couldn't build a path' reason? */
- circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_INTERNAL);
+ circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_NOPATH);
return NULL;
}