From: Christian Hofstaedtler Date: Tue, 7 Jan 2014 09:14:40 +0000 (+0100) Subject: Always initialize AuthDomain.d_rdForward X-Git-Tag: rec-3.6.0-rc1~259^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1196%2Fhead;p=thirdparty%2Fpdns.git Always initialize AuthDomain.d_rdForward Should fix Coverity CID1029973, CID1029974, CID1029975. --- diff --git a/pdns/reczones.cc b/pdns/reczones.cc index 37e70682f1..f56a9ee2bc 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -95,6 +95,8 @@ void primeHints(void) static void makeNameToIPZone(SyncRes::domainmap_t* newMap, const string& hostname, const string& ip) { SyncRes::AuthDomain ad; + ad.d_rdForward=false; + DNSResourceRecord rr; rr.qname=toCanonic("", hostname); rr.d_place=DNSResourceRecord::ANSWER; @@ -130,6 +132,8 @@ static void makeIPToNamesZone(SyncRes::domainmap_t* newMap, const vector stringtok(ipparts, address,"."); SyncRes::AuthDomain ad; + ad.d_rdForward=false; + DNSResourceRecord rr; for(int n=ipparts.size()-1; n>=0 ; --n) { rr.qname.append(ipparts[n]); @@ -298,6 +302,7 @@ SyncRes::domainmap_t* parseAuthAndForwards() trim(headers.second); headers.first=toCanonic("", headers.first); if(n==0) { + ad.d_rdForward = false; L<