From e96f1744f96c12f145313d18e8a4c30dff439073 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 22 Mar 2016 16:00:06 +0100 Subject: [PATCH] pdnsutil: Fix rectify message for non-DNSSEC zones Closes: #3392 --- pdns/pdnsutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 1e5b1c08ad..ffb2c34fa8 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -179,7 +179,7 @@ bool rectifyZone(DNSSECKeeper& dk, const DNSName& zone) bool narrow; bool haveNSEC3=dk.getNSEC3PARAM(zone, &ns3pr, &narrow); bool isOptOut=(haveNSEC3 && ns3pr.d_flags); - if(sd.db->doesDNSSEC()) + if(dk.isSecuredZone(zone)) { if(!haveNSEC3) cerr<<"Adding NSEC ordering information "<