diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-30 11:14:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-30 11:14:41 -0400 |
commit | 9e53cdca86483942fe0e836fb1fa6942a9e883a7 (patch) | |
tree | f0debd22054a5df82e435ae3c78ec32bbd34f209 /src/or | |
parent | 5e805ff1f2401fa28a463659151ef81b479c66ee (diff) | |
parent | 4c4dd505be30de996659f9d3496fc88956fcfbf6 (diff) | |
download | tor-9e53cdca86483942fe0e836fb1fa6942a9e883a7.tar tor-9e53cdca86483942fe0e836fb1fa6942a9e883a7.tar.gz |
Merge remote-tracking branch 'public/bug5916'
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 2b7d3e350..b349f02f6 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1389,7 +1389,7 @@ evdns_callback(int result, char type, int count, int ttl, void *addresses, static int launch_resolve(edge_connection_t *exitconn) { - char *addr = tor_strdup(exitconn->_base.address); + char *addr; struct evdns_request *req = NULL; tor_addr_t a; int r; @@ -1408,6 +1408,8 @@ launch_resolve(edge_connection_t *exitconn) } } + addr = tor_strdup(exitconn->_base.address); + r = tor_addr_parse_PTR_name( &a, exitconn->_base.address, AF_UNSPEC, 0); |