[or-cvs] Use correct payload lengths when sending RENDEZVOUS1 cells

Nick Mathewson nickm at seul.org
Mon Apr 5 21:39:49 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv24806/src/or

Modified Files:
	rendservice.c 
Log Message:
Use correct payload lengths when sending RENDEZVOUS1 cells

Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- rendservice.c	5 Apr 2004 21:31:53 -0000	1.28
+++ rendservice.c	5 Apr 2004 21:39:47 -0000	1.29
@@ -574,7 +574,7 @@
 
   /* Send the cell */
   if (connection_edge_send_command(NULL, circuit, RELAY_COMMAND_RENDEZVOUS1,
-                                   buf, REND_COOKIE_LEN+DH_KEY_LEN+1,
+                                   buf, REND_COOKIE_LEN+DH_KEY_LEN+DIGEST_LEN,
                                    circuit->cpath->prev)<0) {
     log_fn(LOG_WARN, "Couldn't send RENDEZVOUS1 cell");
     goto err;



More information about the tor-commits mailing list