From: Remi Gacogne Date: Fri, 17 May 2019 13:38:00 +0000 (+0200) Subject: auth: Use QType::ENT instead of 0 X-Git-Tag: dnsdist-1.4.0-beta1~30^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6096ad14fa7ec0cb0d68a605678a87e17c8253d5;p=pdns auth: Use QType::ENT instead of 0 --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 21396729c..349876b74 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -2010,7 +2010,7 @@ static void patchZone(HttpRequest* req, HttpResponse* resp) { di.backend->lookup(QType(QType::ANY), qname); DNSResourceRecord rr; while (di.backend->get(rr)) { - if (rr.qtype.getCode() == 0) { + if (rr.qtype.getCode() == QType::ENT) { ent_present = true; /* that's fine, we will override it */ continue;