Skip to content
Snippets Groups Projects
Commit 17a311d9 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix typo: ports are 16 bits.

svn:r374
parent 7bb321ec
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment