aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-08-07 01:12:04 +0000
committerNick Mathewson <nickm@torproject.org>2004-08-07 01:12:04 +0000
commitf5f4314e2d53150a11c252f0511baeefd6b0fce7 (patch)
tree066e3856f554167ac7f84267b7eaf674b045f256 /src/or
parent380f32f07db89b94a93f755af9a5a77b81b9dab9 (diff)
downloadtor-f5f4314e2d53150a11c252f0511baeefd6b0fce7.tar
tor-f5f4314e2d53150a11c252f0511baeefd6b0fce7.tar.gz
Always initialize hexid in rend_mid_rendezvous, no matter what
svn:r2176
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendmid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index cc5045b2a..b37daf9cd 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -229,8 +229,9 @@ rend_mid_rendezvous(circuit_t *circ, const char *request, int request_len)
circuit_t *rend_circ;
char hexid[9];
+ base16_encode(hexid,9,request,request_len<4?request_len:4);
+
if (request_len>=4) {
- base16_encode(hexid,9,request,4);
log_fn(LOG_INFO, "Got request for rendezvous from circuit %d to cookie %s",
circ->p_circ_id, hexid);
}