projects
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c814b4
)
DNSSEC: un-ifdef code uncompilable under DISABLE_DNSSSEC
author
Michael Haardt
<michael@moria.de>
Sun, 20 Dec 2015 12:52:21 +0000
(12:52 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 20 Dec 2015 12:52:21 +0000
(12:52 +0000)
src/src/dns.c
patch
|
blob
|
blame
|
history
diff --git
a/src/src/dns.c
b/src/src/dns.c
index 02eef25a6a57c8c502e17f2a483d21c0fd47c3b2..b55759fa93189f31f0be93eee71a7365ed3e1e1f 100644
(file)
--- 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
}