diff --git a/pdns/dnssecsigner.cc b/pdns/dnssecsigner.cc index 041a642a503b..4a9ab1e7dadf 100644 --- a/pdns/dnssecsigner.cc +++ b/pdns/dnssecsigner.cc @@ -147,11 +147,13 @@ static void addSignature(DNSSECKeeper& dk, UeberBackend& db, const DNSName& sign uint32_t signTTL, DNSResourceRecord::Place signPlace, sortedRecords_t& toSign, vector& outsigned, uint32_t origTTL, DNSPacket* packet) { + static bool directDNSKEYSignature = ::arg().mustDo("direct-dnskey-signature"); + //cerr<<"Asked to sign '"< rrcs; - if(dk.isPresigned(signer) || (::arg().mustDo("direct-dnskey-signature") && signQType == QType::DNSKEY)) { + if(dk.isPresigned(signer) || (directDNSKEYSignature && signQType == QType::DNSKEY)) { //cerr<<"Doing presignatures"<