summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-06-21 17:03:50 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-06-21 21:35:24 +0200
commit25bf2076f3e35d9da64fe9fd8a704e06a398dfc1 (patch)
tree22234e26c7e5781bb7af1f6ae41f431845bd67b7 /src
parent7137ca4bf0ecc4bdcdbe9d370dfebd86b9011730 (diff)
Fix and extend the checks in dns_is_secure()
Diffstat (limited to 'src')
-rw-r--r--src/src/dns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/dns.c b/src/src/dns.c
index 4f84bfc45..2efcbaaff 100644
--- a/src/src/dns.c
+++ b/src/src/dns.c
@@ -460,7 +460,8 @@ if (h->ad) return TRUE;
if ( !h->aa
|| !dns_trust_aa
- || !*(trusted = expand_string(dns_trust_aa))
+ || !(trusted = expand_string(dns_trust_aa))
+ || !*trusted
|| !(auth_name = dns_extract_auth_name(dnsa))
|| OK != match_isinlist(auth_name, &trusted, 0, NULL, NULL,
MCL_DOMAIN, TRUE, NULL)