[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Excellent. We have at least 8 bytes, so I can safely get t...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv24657/src/or

Modified Files:
	relay.c 
Log Message:
Excellent.  We have at least 8 bytes, so I can safely get the 9th.

Index: relay.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/relay.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- relay.c	2 Sep 2005 18:53:31 -0000	1.78
+++ relay.c	3 Sep 2005 02:12:53 -0000	1.79
@@ -748,7 +748,7 @@
         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,