From 91c9d646401d07b77db7d81de5df9a1046185c55 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 28 Oct 2014 12:29:13 +0100 Subject: [PATCH] cache: also cache PTR records Signed-off-by: Steven Barth --- cache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cache.c b/cache.c index 7c7a8fb..59d5b94 100644 --- a/cache.c +++ b/cache.c @@ -261,7 +261,10 @@ cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struc host_len = rdlength - nlen - 1; cache_service(iface, rdata_buffer, host_len, a->ttl); - return; + + dlen = strlen(rdata_buffer) + 1; + rdata = (uint8_t*)rdata_buffer; + break; case TYPE_SRV: if (a->rdlength < 8) -- 2.25.1