commit 32219d83134c861abad5a7d37f93f3ec4b492398 Author: Nick Mathewson nickm@torproject.org Date: Sun Nov 25 13:38:27 2012 -0500
Oops: make the check for not adding ip->ip DNS maps correct --- src/or/addressmap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/or/addressmap.c b/src/or/addressmap.c index 98448eb..8145a14 100644 --- a/src/or/addressmap.c +++ b/src/or/addressmap.c @@ -629,7 +629,7 @@ client_dns_set_addressmap(origin_circuit_t *on_circ, tor_assert(address); tor_assert(val);
- if (tor_addr_parse(&addr_tmp, address) == 0) + if (tor_addr_parse(&addr_tmp, address) >= 0) return; /* If address was an IP address already, don't add a mapping. */
/* XXXXX For now, don't cache IPv6 addresses. */