[or-cvs] Fix bug in client_send_auth

Nick Mathewson nickm at seul.org
Wed Mar 19 21:47:20 UTC 2003


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

Modified Files:
	connection_or.c 
Log Message:
Fix bug in client_send_auth

Index: connection_or.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_or.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- connection_or.c	19 Mar 2003 21:34:38 -0000	1.20
+++ connection_or.c	19 Mar 2003 21:47:18 -0000	1.21
@@ -628,7 +628,7 @@
 
   /* generate message */
   memcpy(buf+48,conn->nonce,8); /* append the nonce to the end of the message */
-  *(uint32_t *)(buf+28) = htonl(conn->bandwidth); /* send max link utilisation */
+  *(uint32_t *)(buf+44) = htonl(conn->bandwidth); /* send max link utilisation */
 
   /* encrypt message */
   retval = crypto_pk_public_encrypt(conn->pkey, buf, 56, cipher,RSA_PKCS1_PADDING);



More information about the tor-commits mailing list