Add DNS debug aid if we requsted AD but got AA
[exim.git] / src / src / dns.c
index 79c4ed3fca701eb234989a7865944d9256084065..6358eada683849b5ecd314bd15077ba42c912a4a 100644 (file)
@@ -462,6 +462,17 @@ HEADER * h = (HEADER *)dnsa->answer;
 h->ad = 0;
 }
 
 h->ad = 0;
 }
 
+/************************************************
+ *     Check whether the AA bit is set         *
+ *     We need this to warn if we requested AD *
+ *     from a authoritive server               *
+ ************************************************/
+
+BOOL
+dns_is_aa(const dns_answer *dnsa)
+{
+return ((HEADER*)dnsa->answer)->aa;
+}