Excellent. We have at least 8 bytes, so I can safely get the 9th.

svn:r4901
This commit is contained in:
Nick Mathewson 2005-09-03 02:12:53 +00:00
parent bcbff6dcd7
commit 9b949cc1d2

View File

@ -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,