projects
/
project
/
mdnsd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cache: also cache PTR records
[project/mdnsd.git]
/
cache.c
diff --git
a/cache.c
b/cache.c
index 7c7a8fba52858cc573100f9d1ff8f6713722cbce..59d5b940a2e71d9ead48b32f84fedf366ca7b1c5 100644
(file)
--- 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)