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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7831%2Fhead;p=thirdparty%2Fpdns.git auth: Use QType::ENT instead of 0 --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 21396729ca..349876b74e 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;