From 74711479eb22faf146b579e1856b37ee4a5afc8b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 10 Jul 2007 17:14:51 +0000 Subject: r13666@catbus: nickm | 2007-07-10 13:10:00 -0400 Get the RESOLVE controller code working. svn:r10781 --- src/or/relay.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/or/relay.c') diff --git a/src/or/relay.c b/src/or/relay.c index 0a34687d6..2bcd40045 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -759,7 +759,8 @@ connection_edge_process_end_not_open( } /* rewrite it to an IP if we learned one. */ if (addressmap_rewrite(conn->socks_request->address, - sizeof(conn->socks_request->address))) { + sizeof(conn->socks_request->address), + NULL)) { control_event_stream_status(conn, STREAM_EVENT_REMAP, 0); } if (conn->_base.chosen_exit_optional) { @@ -946,7 +947,8 @@ connection_edge_process_relay_cell_not_open( answer_type, cell->payload[RELAY_HEADER_SIZE+1], /*answer_len*/ cell->payload+RELAY_HEADER_SIZE+2, /*answer*/ - ttl); + ttl, + -1); if (answer_type == RESOLVED_TYPE_IPV4) { uint32_t addr = ntohl(get_uint32(cell->payload+RELAY_HEADER_SIZE+2)); remap_event_helper(conn, addr); -- cgit v1.2.3