From: Jeremy Harris Date: Mon, 22 Jun 2015 12:55:12 +0000 (+0200) Subject: Testsuite: fix operator precedence in dns_extract_auth_name() X-Git-Tag: exim-4_86_RC4~7 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/47c209581825b5425b4d0c50371fa7f4aa3516c7 Testsuite: fix operator precedence in dns_extract_auth_name() --- 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; }