diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-13 12:57:19 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-13 12:57:19 +0000 |
commit | 977574e48d3ef99445a88f1b4e0dcfbf851c7f84 (patch) | |
tree | 196cfcf9c3be3c9680efd01f5a1b71cbfdc0da43 /src/or | |
parent | 2cd349903c626899a3b6a12f4f8806801ebe002d (diff) | |
download | tor-977574e48d3ef99445a88f1b4e0dcfbf851c7f84.tar.gz tor-977574e48d3ef99445a88f1b4e0dcfbf851c7f84.zip |
back off and add the $ at the beginning of the preferrednodes list
we generate.
svn:r6620
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/circuitbuild.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index f557c5258b..2fdf6dfddb 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1491,8 +1491,9 @@ compute_preferred_testing_list(const char *answer) } log_info(LD_CIRC, "Looking for middle server that doesn't have the " "reachability bug, and chose '%s'. Great.", router->nickname); - s = tor_malloc(HEX_DIGEST_LEN+1); - base16_encode(s, HEX_DIGEST_LEN+1, + s = tor_malloc(HEX_DIGEST_LEN+2); + s[0] = '$'; + base16_encode(s+1, HEX_DIGEST_LEN+1, router->cache_info.identity_digest, DIGEST_LEN); return s; } |