From 64c72516aed1ef52ee661f18f595545a8e33adeb Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Thu, 19 Sep 2024 08:06:52 +0200 Subject: [PATCH] ixfrSuck: init soatimes without separate memset --- pdns/auth-secondarycommunicator.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pdns/auth-secondarycommunicator.cc b/pdns/auth-secondarycommunicator.cc index ae9a54243712..739838afe976 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 "<