[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] (FWD) Fix typo: ports are 16 bits.



[I've blocked or-cvs so only subscribed people can post. -RD]

----- Forwarded message from owner-or-cvs@freehaven.net -----

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

Modified Files:
	circuit.c 
Log Message:
Fix typo: ports are 16 bits.

Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- circuit.c	30 Jul 2003 19:12:02 -0000	1.56
+++ circuit.c	11 Aug 2003 19:48:22 -0000	1.57
@@ -760,7 +760,7 @@
 
     cell.length = RELAY_HEADER_SIZE + 6 + DH_ONIONSKIN_LEN;
     *(uint32_t*)(cell.payload+RELAY_HEADER_SIZE) = htonl(hop->addr);
-    *(uint32_t*)(cell.payload+RELAY_HEADER_SIZE+4) = htons(hop->port);
+    *(uint16_t*)(cell.payload+RELAY_HEADER_SIZE+4) = htons(hop->port);
     if(onion_skin_create(router->pkey, &(hop->handshake_state), cell.payload+RELAY_HEADER_SIZE+6) < 0) {
       log_fn(LOG_INFO,"onion_skin_create failed.");
       return -1;


----- End forwarded message -----