From: bert hubert Date: Mon, 14 Aug 2017 13:52:43 +0000 (+0200) Subject: pdnsutil edit-zone checks with auth=1, but the test is run on data not from the datab... X-Git-Tag: dnsdist-1.2.0~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5610%2Fhead;p=thirdparty%2Fpdns.git pdnsutil edit-zone checks with auth=1, but the test is run on data not from the database, but straight from the zonefile just edited, which can't yet be rectified. This commit removes the auth=1 check in case of data that is supplied straight to checkZone not from the database --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 079125bed4..6123c9ca53 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -642,7 +642,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, const vect } } - if(rr.auth == 0 && rr.qtype.getCode()!=QType::NS && rr.qtype.getCode()!=QType::A && rr.qtype.getCode()!=QType::AAAA) + if(!suppliedrecords && rr.auth == 0 && rr.qtype.getCode()!=QType::NS && rr.qtype.getCode()!=QType::A && rr.qtype.getCode()!=QType::AAAA) { cout<<"[Error] Following record is auth=0, run pdnsutil rectify-zone?: "<