From: Kees Monshouwer Date: Mon, 19 May 2014 13:41:56 +0000 (+0200) Subject: fix uninitalized var in suck() X-Git-Tag: rec-3.6.0-rc1~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1419%2Fhead;p=thirdparty%2Fpdns.git fix uninitalized var in suck() --- 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;