summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh@exim.org>2015-06-22 14:55:12 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-06-22 14:55:45 +0200
commit47c209581825b5425b4d0c50371fa7f4aa3516c7 (patch)
tree171cdf626ca84be4752e9e7414faa976917b4bda
parent78cc8a23961c969fb7ca66e694446d2e1f7abc98 (diff)
Testsuite: fix operator precedence in dns_extract_auth_name()
-rw-r--r--src/src/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/dns.c b/src/src/dns.c
index dbe331ea5..64958d983 100644
--- a/src/src/dns.c
+++ b/src/src/dns.c
@@ -424,7 +424,7 @@ if (!h->nscount || !h->aa) return NULL;
for (rr = dns_next_rr((dns_answer*) dnsa, &dnss, RESET_AUTHORITY);
rr;
rr = dns_next_rr((dns_answer*) dnsa, &dnss, RESET_NEXT))
- if (rr->type == h->ancount ? T_NS : T_SOA) return rr->name;
+ if (rr->type == (h->ancount ? T_NS : T_SOA)) return rr->name;
return NULL;
}