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 dbe331e..64958d9 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;
 }