From: Nick Mathewson Date: Sat, 7 Aug 2004 01:12:04 +0000 (+0000) Subject: Always initialize hexid in rend_mid_rendezvous, no matter what X-Git-Tag: tor-0.0.8pre3~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5f4314e2d53150a11c252f0511baeefd6b0fce7;p=thirdparty%2Ftor.git Always initialize hexid in rend_mid_rendezvous, no matter what svn:r2176 --- diff --git a/src/or/rendmid.c b/src/or/rendmid.c index cc5045b2a7..b37daf9cd7 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); }