summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-13 18:44:42 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-13 18:44:42 +0000
commit867832cd071163bd2f55bda68677c77c0ed23fa6 (patch)
tree327065ba878a00fd1da4fa936bd301a88440f0aa
parentd19abb24026820d8c12d345ff808df25e219272b (diff)
downloadtor-867832cd071163bd2f55bda68677c77c0ed23fa6.tar.gz
tor-867832cd071163bd2f55bda68677c77c0ed23fa6.zip
or, not and
svn:r1610
-rw-r--r--src/or/connection_edge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index cb38493818..26d3226cf8 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -1300,7 +1300,7 @@ static uint32_t client_dns_lookup_entry(const char *address)
return ntohl(in.s_addr);
}
ent = strmap_get_lc(client_dns_map,address);
- if (!ent && !ent->addr) {
+ if (!ent || !ent->addr) {
log_fn(LOG_DEBUG, "No entry found for address %s", address);
return 0;
} else {