DNS: use tainted memory for all lookups
[exim.git] / src / src / functions.h
index de03bb8d01d2049a858492cafd8b21f4e76d2852..9f813d5ed53e398261ceda2addae755f2b7b0416 100644 (file)
@@ -850,6 +850,15 @@ return g;
 }
 
 /******************************************************************************/
+
+#define store_get_dns_answer() store_get_dns_answer_trc(CUS __FUNCTION__, __LINE__)
+
+static inline dns_answer *
+store_get_dns_answer_trc(const uschar * func, unsigned line)
+{
+return store_get_3(sizeof(dns_answer), TRUE, CCS func, line);  /* use tainted mem */
+}
+
 #endif /* !MACRO_PREDEF */
 
 #endif  /* _FUNCTIONS_H_ */