From: Chris Hofstaedtler Date: Sat, 20 Jun 2020 23:26:28 +0000 (+0200) Subject: auth: add used master address to slave check logs X-Git-Tag: rec-4.4.0-beta1~45^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a8fa6d32ca82997ae8f76cdb5d780d1a62dec18;p=thirdparty%2Fpdns.git auth: add used master address to slave check logs --- diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 1794cc0254..7ab50744b8 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -712,13 +712,10 @@ struct SlaveSenderReceiver bool receive(Identifier& id, Answer& a) { - if(d_resolver.tryGetSOASerial(&(std::get<0>(id)), &(std::get<1>(id)), &a.theirSerial, &a.theirInception, &a.theirExpire, &(std::get<2>(id)))) { - return 1; - } - return 0; + return d_resolver.tryGetSOASerial(&(std::get<0>(id)), &(std::get<1>(id)), &a.theirSerial, &a.theirInception, &a.theirExpire, &(std::get<2>(id))); } - void deliverAnswer(DomainNotificationInfo& dni, const Answer& a, unsigned int usec) + void deliverAnswer(const DomainNotificationInfo& dni, const Answer& a, unsigned int usec) { d_freshness[dni.di.id]=a; } @@ -899,14 +896,14 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P) } g_log<getDomainInfo(di.zone, tempdi)) { g_log< their serial "<< theirserial << endl; + g_log< their serial "<< theirserial << endl; di.backend->setFresh(di.id); } else if(hasSOA && theirserial == ourserial) { @@ -968,38 +967,38 @@ void CommunicatorClass::slaveRefresh(PacketHandler *P) } } if(! maxInception && ! ssr.d_freshness[di.id].theirInception) { - g_log<setFresh(di.id); } else if(maxInception == ssr.d_freshness[di.id].theirInception && maxExpire == ssr.d_freshness[di.id].theirExpire) { - g_log<setFresh(di.id); } else if(maxExpire >= now && ! ssr.d_freshness[di.id].theirInception ) { - g_log<setFresh(di.id); } else if(maxInception && ! ssr.d_freshness[di.id].theirInception ) { - g_log<