From 26752fd7765920fd32199583c5e36cad78e36bf3 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 19 May 2014 15:41:56 +0200 Subject: [PATCH] fix uninitalized var in suck() --- pdns/slavecommunicator.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 91d3b88acc..c0cbdb3d65 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -319,8 +319,9 @@ void CommunicatorClass::suck(const string &domain,const string &remote) if(doent && !rrterm.empty()) { bool auth; if (!rr.auth && rr.qtype.getCode() == QType::NS) { - ordername=toBase32Hex(hashQNameWithSalt(ns3pr.d_iterations, ns3pr.d_salt, rr.qname)); - auth=(!optOutFlag || secured.count(ordername)); + if (isNSEC3) + ordername=toBase32Hex(hashQNameWithSalt(ns3pr.d_iterations, ns3pr.d_salt, rr.qname)); + auth=(!isNSEC3 || !optOutFlag || secured.count(ordername)); } else auth=rr.auth; -- 2.47.2