]> granicus.if.org Git - pdns/commitdiff
Do not thrown an error for get() if zone was not found
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 8 Nov 2016 08:52:12 +0000 (10:52 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 8 Nov 2016 08:52:12 +0000 (10:52 +0200)
modules/mydnsbackend/mydnsbackend.cc

index 8df0abeb281798c7a8f556172b0b8fb1d06858e1..71bb6be4873856b47268b1fc4e812984cbc923b3 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];