From: Bert Hubert Date: Tue, 11 Jan 2011 22:00:50 +0000 (+0000) Subject: messed up the 'narrow' detection from the db X-Git-Tag: auth-3.0~372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c9813b88be1c171d9e478e910f56f219221644cc;p=pdns messed up the 'narrow' detection from the db git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1875 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index f656aed9d..2e5fca8fe 100644 --- a/pdns/dbdnsseckeeper.cc +++ b/pdns/dbdnsseckeeper.cc @@ -172,7 +172,7 @@ bool DNSSECKeeper::getNSEC3PARAM(const std::string& zname, NSEC3PARAMRecordConte meta.clear(); d_db.getDomainMetadata(zname, "NSEC3NARROW", meta); - nce.d_narrow = meta.empty() || meta[1]!="1"; + nce.d_narrow = !meta.empty() && meta[1]=="1"; if(narrow) { *narrow=nce.d_narrow;