diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-11-25 13:38:27 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-12-17 14:48:09 -0500 |
commit | 32219d83134c861abad5a7d37f93f3ec4b492398 (patch) | |
tree | b69762c223247f0198997ecef3ae3660cbc2e5bd | |
parent | d3e9e03cacda3d99f3c585fd7bc00b3dd2390d61 (diff) | |
download | tor-32219d83134c861abad5a7d37f93f3ec4b492398.tar.gz tor-32219d83134c861abad5a7d37f93f3ec4b492398.zip |
Oops: make the check for not adding ip->ip DNS maps correct
-rw-r--r-- | 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 98448ebddf..8145a14a99 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. */ |