X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1705dd20918634cfce236049e47d0fe43753dbc8..221dff13865453585b049f509c92b4b198258911:/src/src/dns.c diff --git a/src/src/dns.c b/src/src/dns.c index 79c4ed3fc..6358eada6 100644 --- a/src/src/dns.c +++ b/src/src/dns.c @@ -462,6 +462,17 @@ HEADER * h = (HEADER *)dnsa->answer; 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; +}