From: Fred Morcos Date: Sun, 29 Oct 2023 14:04:44 +0000 (+0100) Subject: Cleanup UeberBackend TSIG Key handling methods X-Git-Tag: rec-5.0.0-beta1~16^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4baf63ae8fb339bc3952741af2e154c90540099;p=thirdparty%2Fpdns.git Cleanup UeberBackend TSIG Key handling methods --- diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index fd51010bb1..7bcb49bd09 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -639,8 +639,9 @@ void UeberBackend::addCache(const Question& q, vector&& rrs) cons void UeberBackend::alsoNotifies(const DNSName& domain, set* ips) { - for (auto& backend : backends) + for (auto& backend : backends) { backend->alsoNotifies(domain, ips); + } } UeberBackend::~UeberBackend() @@ -757,8 +758,8 @@ bool UeberBackend::get(DNSZoneRecord& rr) // bool UeberBackend::setTSIGKey(const DNSName& name, const DNSName& algorithm, const string& content) { - for (auto* b : backends) { - if (b->setTSIGKey(name, algorithm, content)) { + for (auto* backend : backends) { + if (backend->setTSIGKey(name, algorithm, content)) { return true; } } @@ -770,8 +771,8 @@ bool UeberBackend::getTSIGKey(const DNSName& name, DNSName& algorithm, string& c algorithm.clear(); content.clear(); - for (auto* b : backends) { - if (b->getTSIGKey(name, algorithm, content)) { + for (auto* backend : backends) { + if (backend->getTSIGKey(name, algorithm, content)) { break; } } @@ -782,8 +783,8 @@ bool UeberBackend::getTSIGKeys(std::vector& keys) { keys.clear(); - for (auto* b : backends) { - if (b->getTSIGKeys(keys)) { + for (auto* backend : backends) { + if (backend->getTSIGKeys(keys)) { return true; } } @@ -792,8 +793,8 @@ bool UeberBackend::getTSIGKeys(std::vector& keys) bool UeberBackend::deleteTSIGKey(const DNSName& name) { - for (auto* b : backends) { - if (b->deleteTSIGKey(name)) { + for (auto* backend : backends) { + if (backend->deleteTSIGKey(name)) { return true; } }