diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-11 19:48:22 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-11 19:48:22 +0000 |
commit | 17a311d9a00fe8ba9fc6288eafeb00e4bc1e8c12 (patch) | |
tree | 539a0f84a67e260dc1c86145c4a7d3a1fb81dcee | |
parent | 7bb321ec8a263ede57372837e41482255b841dc6 (diff) | |
download | tor-17a311d9a00fe8ba9fc6288eafeb00e4bc1e8c12.tar tor-17a311d9a00fe8ba9fc6288eafeb00e4bc1e8c12.tar.gz |
Fix typo: ports are 16 bits.
svn:r374
-rw-r--r-- | src/or/circuit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index 3ba0dad5e..a3fd62d29 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -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; |