diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-30 05:04:52 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-30 05:04:52 +0000 |
commit | 51e16233cbecf44332fb85b4db994d95c2e3bc9d (patch) | |
tree | c84da7a836cfcebc7421922b7e87bfd94e2013d0 /src/or/circuitbuild.c | |
parent | 5c68db8b3dc74f05ab2bb6e397647f5d4f1dad0e (diff) | |
download | tor-51e16233cbecf44332fb85b4db994d95c2e3bc9d.tar.gz tor-51e16233cbecf44332fb85b4db994d95c2e3bc9d.zip |
Fix paul gardner's assert bug. Turns out when circuit_launch_by_nickname()
failed at the first hop, it would try to relaunch another circ right
then, even though the first circuit hadn't been populated yet with its
pending_final_cpath.
svn:r2624
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 4c7536da53..45f675e770 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1167,7 +1167,7 @@ onion_extend_cpath(crypt_path_t **head_ptr, cpath_build_state_t } log_fn(LOG_DEBUG,"Chose router %s for hop %d (exit is %s)", - choice->nickname, cur_len, state->chosen_exit_name); + choice->nickname, cur_len+1, state->chosen_exit_name); hop = tor_malloc_zero(sizeof(crypt_path_t)); @@ -1184,7 +1184,7 @@ onion_extend_cpath(crypt_path_t **head_ptr, cpath_build_state_t hop->deliver_window = CIRCWINDOW_START; log_fn(LOG_DEBUG, "Extended circuit path with %s for hop %d", - choice->nickname, cur_len); + choice->nickname, cur_len+1); *router_out = choice; return 0; |