From: Klaus Darilion Date: Tue, 5 Apr 2016 07:09:21 +0000 (+0000) Subject: handle SOAs with serial 0 correctly in incoming AXFR X-Git-Tag: rec-4.0.0-alpha3~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3c9e1df6ce74dee576f81f383f4aa5decea8c62;p=thirdparty%2Fpdns.git handle SOAs with serial 0 correctly in incoming AXFR --- diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index b53aaac4b1..47a952f46f 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -147,6 +147,7 @@ void CommunicatorClass::suck(const DNSName &domain,const string &remote) bool first=true; bool firstNSEC3=true; + bool soa_received = false; unsigned int soa_serial = 0; set nsset, qnames, secured; vector rrs; @@ -199,11 +200,12 @@ void CommunicatorClass::suck(const DNSName &domain,const string &remote) continue; } case QType::SOA: { - if(soa_serial != 0) + if(soa_received) continue; //skip the last SOA SOAData sd; fillSOAData(rr.content,sd); soa_serial = sd.serial; + soa_received = true; break; } case QType::NS: {