diff options
-rw-r--r-- | src/src/dns.c | 2 |
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; } |