diff options
author | Michael Haardt <michael@moria.de> | 2015-12-20 12:52:21 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-12-20 12:52:21 +0000 |
commit | e87c01c7630077b66144d1939e6bad3bae4b9974 (patch) | |
tree | 13e3d32cd7067251e1409ed2ec2334d9e38bb85b | |
parent | 7c814b450f089129e77af5067fd324ca5ec72383 (diff) |
DNSSEC: un-ifdef code uncompilable under DISABLE_DNSSSEC
-rw-r--r-- | src/src/dns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/src/dns.c b/src/src/dns.c index 02eef25a6..b55759fa9 100644 --- a/src/src/dns.c +++ b/src/src/dns.c @@ -483,8 +483,10 @@ return TRUE; static void dns_set_insecure(dns_answer * dnsa) { +#ifndef DISABLE_DNSSEC HEADER * h = (HEADER *)dnsa->answer; h->ad = 0; +#endif } /************************************************ @@ -496,7 +498,11 @@ h->ad = 0; BOOL dns_is_aa(const dns_answer *dnsa) { +#ifdef DISABLE_DNSSEC +return FALSE; +#else return ((HEADER*)dnsa->answer)->aa; +#endif } |