Fix code freeing cached non-A(AAA) records too early
[project/mdnsd.git] / cache.h
diff --git a/cache.h b/cache.h
index 6c38977..10859a5 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -44,9 +44,11 @@ struct cache_record {
        uint16_t rdlength;
        time_t time;
        struct interface *iface;
+       int refresh;
 };
 
 extern struct avl_tree services;
+extern struct avl_tree records;
 
 int cache_init(void);
 void cache_update(void);