From: Chris Hofstaedtler Date: Thu, 19 Sep 2024 06:06:52 +0000 (+0200) Subject: ixfrSuck: init soatimes without separate memset X-Git-Tag: rec-5.2.0-alpha1~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14684%2Fhead;p=thirdparty%2Fpdns.git ixfrSuck: init soatimes without separate memset --- diff --git a/pdns/auth-secondarycommunicator.cc b/pdns/auth-secondarycommunicator.cc index ae9a542437..739838afe9 100644 --- a/pdns/auth-secondarycommunicator.cc +++ b/pdns/auth-secondarycommunicator.cc @@ -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(g_rootdnsname, g_rootdnsname, st)); + drsoa.setContent(std::make_shared(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 "<