mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
r11493@catbus: nickm | 2007-01-24 18:41:52 -0500
Use set_uint16/32 instead of raw assignments in order to make gcc happier. svn:r9399
This commit is contained in:
parent
b0b96c9091
commit
71f47320f8
@ -622,8 +622,8 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
*(uint32_t*)payload = htonl(hop->extend_info->addr);
|
set_uint32(payload, htonl(hop->extend_info->addr));
|
||||||
*(uint16_t*)(payload+4) = htons(hop->extend_info->port);
|
set_uint16(payload+4, htons(hop->extend_info->port));
|
||||||
|
|
||||||
onionskin = payload+2+4;
|
onionskin = payload+2+4;
|
||||||
memcpy(payload+2+4+ONIONSKIN_CHALLENGE_LEN,
|
memcpy(payload+2+4+ONIONSKIN_CHALLENGE_LEN,
|
||||||
|
Loading…
Reference in New Issue
Block a user