Testsuite: fix operator precedence in dns_extract_auth_name()
authorJeremy Harris <jgh@exim.org>
Mon, 22 Jun 2015 12:55:12 +0000 (14:55 +0200)
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>
Mon, 22 Jun 2015 12:55:45 +0000 (14:55 +0200)
src/src/dns.c

index dbe331ea53e341a905bbd7ed610d0ff81fa348e6..64958d9830e34e3e7975e26eb1c64978a41095f4 100644 (file)
@@ -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;
 }