store ip address as struct in_addr instead of a string
[project/mdnsd.git] / cache.c
diff --git a/cache.c b/cache.c
index 4dcccfb..c49b0fd 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -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;