aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-01-31 00:58:06 +0000
committerNick Mathewson <nickm@torproject.org>2007-01-31 00:58:06 +0000
commite7ac17fdf51f0c91af7640f10fac80f203f4f259 (patch)
tree7598c075a94a413492238e742f7758636bd021b4 /src
parent49b5e5cf9c3dcfd33081a09394854586f4dde2dd (diff)
downloadtor-e7ac17fdf51f0c91af7640f10fac80f203f4f259.tar
tor-e7ac17fdf51f0c91af7640f10fac80f203f4f259.tar.gz
r11613@catbus: nickm | 2007-01-30 19:58:03 -0500
Re-enable server side PTR-record cacheing. svn:r9468
Diffstat (limited to 'src')
-rw-r--r--src/or/dns.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 40897d307..3137a67de 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -499,6 +499,7 @@ send_resolved_hostname_cell(edge_connection_t *conn, or_circuit_t *circ,
size_t buflen;
uint32_t ttl;
size_t namelen = strlen(hostname);
+ tor_assert(hostname);
tor_assert(namelen < 256);
ttl = dns_clip_ttl(conn->address_ttl);
@@ -902,11 +903,6 @@ add_answer_to_cache(const char *address, int is_reverse, uint32_t addr,
if (outcome == DNS_RESOLVE_FAILED_TRANSIENT)
return;
- /* XXXX012 This is dumb, but it seems to workaround a bug I can't find. We
- * should nail this so we can cache reverse DNS answers. -NM */
- if (is_reverse)
- return;
-
//log_notice(LD_EXIT, "Adding to cache: %s -> %s (%lx, %s), %d",
// address, is_reverse?"(reverse)":"", (unsigned long)addr,
// hostname?hostname:"NULL",(int)outcome);