From: pdns packagers Date: Fri, 21 Jun 2019 19:07:07 +0000 (+0100) Subject: CVE-2019-10162-4.1.8-invalidrecords X-Git-Tag: archive/raspbian/4.1.6-3+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2a0855954f43aa35f479d05e4a5da9064d097d6c;p=pdns.git CVE-2019-10162-4.1.8-invalidrecords Gbp-Pq: Name CVE-2019-10162-4.1.8-invalidrecords.patch --- diff --git a/pdns/mastercommunicator.cc b/pdns/mastercommunicator.cc index 456957a..ce0355c 100644 --- a/pdns/mastercommunicator.cc +++ b/pdns/mastercommunicator.cc @@ -50,6 +50,7 @@ void CommunicatorClass::queueNotifyDomain(const DomainInfo& di, UeberBackend* B) FindNS fns; + try { if (d_onlyNotify.size()) { B->lookup(QType(QType::NS), di.zone); while(B->get(rr)) @@ -77,6 +78,16 @@ void CommunicatorClass::queueNotifyDomain(const DomainInfo& di, UeberBackend* B) hasQueuedItem=true; } } + } + catch (PDNSException &ae) { + L << Logger::Error << "Error looking up name servers for " << di.zone << ", cannot notify: " << ae.reason << endl; + return; + } + catch (std::exception &e) { + L << Logger::Error << "Error looking up name servers for " << di.zone << ", cannot notify: " << e.what() << endl; + return; + } + set alsoNotify(d_alsoNotify); B->alsoNotifies(di.zone, &alsoNotify);