mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Excellent. We have at least 8 bytes, so I can safely get the 9th.
svn:r4901
This commit is contained in:
parent
bcbff6dcd7
commit
9b949cc1d2
@ -748,7 +748,7 @@ connection_edge_process_relay_cell_not_open(
|
||||
return 0;
|
||||
}
|
||||
if (rh->length >= 8)
|
||||
ttl = (int)ntohl(get_uint32(cell->payload+RELAY_HEADER_SIZE+8));
|
||||
ttl = (int)ntohl(get_uint32(cell->payload+RELAY_HEADER_SIZE+4));
|
||||
else
|
||||
ttl = -1;
|
||||
client_dns_set_addressmap(conn->socks_request->address, addr,
|
||||
|
Loading…
Reference in New Issue
Block a user