From: Steven Barth Date: Tue, 28 Oct 2014 11:29:13 +0000 (+0100) Subject: cache: also cache PTR records X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=91c9d646401d07b77db7d81de5df9a1046185c55;p=oweals%2Fmdnsd.git cache: also cache PTR records Signed-off-by: Steven Barth --- 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)