X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmdnsd.git;a=blobdiff_plain;f=cache.c;h=9addc3c75b008ab9429b7b7097a0de791a67c29a;hp=4dcccfb8b20ff0050ea82840ef3e04830963f900;hb=571cc214415f40ea52a98eed6b450b74be69c6f9;hpb=a2684fb549fa8bf2f3097ea73b158248a4606d42 diff --git a/cache.c b/cache.c index 4dcccfb..9addc3c 100644 --- a/cache.c +++ b/cache.c @@ -42,7 +42,7 @@ #include "interface.h" static struct uloop_timeout cache_gc; -struct avl_tree records, entries, hosts; +struct avl_tree records, entries; static void cache_record_free(struct cache_record *r) @@ -227,6 +227,8 @@ cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struc void *rdata_ptr, *txt_ptr; int host_len = 0; + static char rdata_buffer[MAX_DATA_LEN + 1]; + if (!(a->class & CLASS_IN)) return;