]> granicus.if.org Git - pdns/commitdiff
Avoid infinite loop in mydnsbackend.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 11 Feb 2019 13:15:30 +0000 (14:15 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 11 Feb 2019 13:15:30 +0000 (14:15 +0100)
modules/mydnsbackend/mydnsbackend.cc

index fb75faf28165effb59be3c5aed559b5addb3d967..b8a3714ff52ac32f5e2a2da251c04052a73676e9 100644 (file)
@@ -308,7 +308,7 @@ void MyDNSBackend::lookup(const QType &qtype, const DNSName &qname, DNSPacket *p
 
   if (found) {
 
-    while (d_result.size()>1) {
+    if (d_result.size()>1) {
       g_log<<Logger::Warning<<backendName<<" Found more than one matching zone for: "+d_origin<<endl;
     };
     // We found the zoneId, so we can work out how to find our rr