[or-cvs] back off and add the $ at the beginning of the preferrednod...
arma at seul.org
arma at seul.org
Tue Jun 13 12:57:22 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
circuitbuild.c
Log Message:
back off and add the $ at the beginning of the preferrednodes list
we generate.
Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.245
retrieving revision 1.246
diff -u -p -d -r1.245 -r1.246
--- circuitbuild.c 13 Jun 2006 10:25:22 -0000 1.245
+++ circuitbuild.c 13 Jun 2006 12:57:19 -0000 1.246
@@ -1491,8 +1491,9 @@ compute_preferred_testing_list(const cha
}
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;
}
More information about the tor-commits
mailing list