From 33d97147b94ccfc24021f15e8cffa822fb4e442a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 29 May 2019 11:48:47 +0200 Subject: [PATCH] auth: Check that the domain exists in pdnsutil check-zone Reported by Coverity (CID 1401633). --- pdns/pdnsutil.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 5abce3b4db..5568b9afde 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 '"<