[or-cvs] Always initialize hexid in rend_mid_rendezvous, no matter w...
Nick Mathewson
nickm at seul.org
Sat Aug 7 01:12:06 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv13757/src/or
Modified Files:
rendmid.c
Log Message:
Always initialize hexid in rend_mid_rendezvous, no matter what
Index: rendmid.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendmid.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- rendmid.c 7 Aug 2004 01:03:33 -0000 1.24
+++ rendmid.c 7 Aug 2004 01:12:04 -0000 1.25
@@ -229,8 +229,9 @@
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);
}
More information about the tor-commits
mailing list