Support TTL from SOA for NXDOMAIN & NODATA cache entries. Bug 1395
[exim.git] / src / src / structs.h
index c40750045fe4d9999f958e25c552fb243eb043a3..338dccbf1233452d5bca2d0f5224b155a9d24745 100644 (file)
@@ -728,7 +728,11 @@ for the lookups cache */
 
 typedef struct expiring_data {
   time_t expiry;                 /* if nonzero, data invalid after this time */
-  void   *ptr;                   /* pointer to data */
+  union
+    {
+    void  *ptr;                   /* pointer to data */
+    int val;                      /* or integer data */
+    } data;
 } expiring_data;
 
 /* Structure for holding the handle and the cached last lookup for searches.
@@ -809,7 +813,7 @@ typedef struct {
 
 #ifdef SUPPORT_DANE
   BOOL dane:1;                 /* connection must do dane */
-  dns_answer           tlsa_dnsa;
+  dns_answer           tlsa_dnsa;      /* strictly, this should use tainted mem */
 #endif
 } smtp_connect_args;