From: Kees Monshouwer Date: Mon, 19 May 2014 12:56:50 +0000 (+0200) Subject: fix uninitialised values in bind backend X-Git-Tag: rec-3.6.0-rc1~19^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe5ecd7e4c91d9e7b33539f6fb6ca81a96874e9c;p=pdns fix uninitialised values in bind backend --- diff --git a/modules/bindbackend/bindbackend2.cc b/modules/bindbackend/bindbackend2.cc index 1bb72320d..f174d7ed9 100644 --- a/modules/bindbackend/bindbackend2.cc +++ b/modules/bindbackend/bindbackend2.cc @@ -482,6 +482,8 @@ void Bind2Backend::insertRecord(BB2DomainInfo& bb2, const string &qnameu, const if (auth) // Set auth on empty non-terminals bdr.auth=*auth; + else + bdr.auth=true; if(bdr.qtype == QType::MX || bdr.qtype == QType::SRV) { prio=atoi(bdr.content.c_str()); @@ -670,7 +672,7 @@ void Bind2Backend::doEmptyNonTerminals(BB2DomainInfo& bbd, bool nsec3zone, NSEC3 shorter=labelReverse(bdr.qname); if (!bdr.auth && bdr.qtype == QType::NS) - auth=(!ns3pr.d_flags); + auth=(!nsec3zone || !ns3pr.d_flags); else auth=bdr.auth;