From 561da55335059abf36bc5ce9962df39162f0a1d5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 10 Jun 2014 00:07:49 +0200 Subject: [PATCH] reuse mdns_buf for cache_answer() Signed-off-by: Felix Fietkau --- cache.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cache.c b/cache.c index 89bd015..dbd258d 100644 --- a/cache.c +++ b/cache.c @@ -226,8 +226,7 @@ cache_answer(struct interface *iface, uint8_t *base, int blen, char *name, struc char *name_buf; void *rdata_ptr, *txt_ptr; int host_len = 0; - - static char rdata_buffer[MAX_DATA_LEN + 1]; + static char *rdata_buffer = (char *) mdns_buf; if (!(a->class & CLASS_IN)) return; -- 2.25.1