Skip to content

Commit

Permalink
ixfrSuck: init soatimes without separate memset
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Sep 22, 2024
1 parent cf7d385 commit 64c7251
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pdns/auth-secondarycommunicator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,9 @@ void CommunicatorClass::ixfrSuck(const DNSName& domain, const TSIGTriplet& tt, c
}

uint16_t xfrTimeout = ::arg().asNum("axfr-fetch-timeout");
soatimes st;
memset(&st, 0, sizeof(st));
st.serial = di.serial;

soatimes drsoa_soatimes = {di.serial, 0, 0, 0, 0};
DNSRecord drsoa;
drsoa.setContent(std::make_shared<SOARecordContent>(g_rootdnsname, g_rootdnsname, st));
drsoa.setContent(std::make_shared<SOARecordContent>(g_rootdnsname, g_rootdnsname, drsoa_soatimes));
auto deltas = getIXFRDeltas(remote, domain, drsoa, xfrTimeout, false, tt, laddr.sin4.sin_family ? &laddr : nullptr, ((size_t)::arg().asNum("xfr-max-received-mbytes")) * 1024 * 1024);
zs.numDeltas = deltas.size();
// cout<<"Got "<<deltas.size()<<" deltas from serial "<<di.serial<<", applying.."<<endl;
Expand Down

0 comments on commit 64c7251

Please sign in to comment.