]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix typo: ports are 16 bits.
authorNick Mathewson <nickm@torproject.org>
Mon, 11 Aug 2003 19:48:22 +0000 (19:48 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 11 Aug 2003 19:48:22 +0000 (19:48 +0000)
svn:r374

src/or/circuit.c

index 3ba0dad5e81246bf84a5bb03ed5a48f1038dfb2e..a3fd62d295e7bc88bd0d03030066d4c68184dbdf 100644 (file)
@@ -760,7 +760,7 @@ int circuit_send_next_onion_skin(circuit_t *circ) {
 
     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;