From 6096ad14fa7ec0cb0d68a605678a87e17c8253d5 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 17 May 2019 15:38:00 +0200 Subject: [PATCH] auth: Use QType::ENT instead of 0 --- pdns/ws-auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2