From a4baf63ae8fb339bc3952741af2e154c90540099 Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Sun, 29 Oct 2023 15:04:44 +0100 Subject: [PATCH] Cleanup UeberBackend TSIG Key handling methods --- pdns/ueberbackend.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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; } } -- 2.47.2