aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-03 02:12:53 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-03 02:12:53 +0000
commit9b949cc1d2603da1675fde754debad0e48a4167a (patch)
treec68b0e31a46bfca88714b282ec4dea7d8a672ff2 /src/or/relay.c
parentbcbff6dcd753a627eb7e78658501443a0da5c3c9 (diff)
downloadtor-9b949cc1d2603da1675fde754debad0e48a4167a.tar.gz
tor-9b949cc1d2603da1675fde754debad0e48a4167a.zip
Excellent. We have at least 8 bytes, so I can safely get the 9th.
svn:r4901
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 60e895903c..7c90089ae2 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -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,