]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not thrown an error for get() if zone was not found 4666/head
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 7 Nov 2016 16:28:52 +0000 (18:28 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 7 Nov 2016 16:28:52 +0000 (18:28 +0200)
modules/mydnsbackend/mydnsbackend.cc

index a9ef7ea7530564b1151bfd207ccd7dd016ff496e..fff37784af18220f3c95a02958aefd6b8d790522 100644 (file)
@@ -305,7 +305,7 @@ void MyDNSBackend::lookup(const QType &qtype, const DNSName &qname, DNSPacket *p
     }
 
     if(d_result.empty()) {
-      throw PDNSException("lookup() passed zoneId = "+itoa(zoneId)+" but no such zone!");
+      return; // just return if zone was not found instead of throwing an error
     }
 
     rrow = d_result[0];