From: Remi Gacogne Date: Wed, 29 May 2019 09:48:47 +0000 (+0200) Subject: auth: Check that the domain exists in pdnsutil check-zone X-Git-Tag: dnsdist-1.4.0-beta1~8^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33d97147b94ccfc24021f15e8cffa822fb4e442a;p=pdns auth: Check that the domain exists in pdnsutil check-zone Reported by Coverity (CID 1401633). --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 5abce3b4d..5568b9afd 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -244,7 +244,10 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect DomainInfo di; try { - B.getDomainInfo(zone, di); + if (!B.getDomainInfo(zone, di)) { + cout<<"[Error] Unable to get domain information for zone '"<