From: Fred Morcos Date: Fri, 27 Oct 2023 13:53:47 +0000 (+0200) Subject: Cleanup UeberBackend constructor X-Git-Tag: rec-5.0.0-beta1~16^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41f0a5e19e4a544abfbb2200af5e3f13d6024623;p=thirdparty%2Fpdns.git Cleanup UeberBackend constructor --- diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index 64de6d8c54..40584a5321 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -556,14 +556,13 @@ bool UeberBackend::superMasterBackend(const string& ip, const DNSName& domain, c return false; } -UeberBackend::UeberBackend(const string& pname) +UeberBackend::UeberBackend(const string& pname) : + d_negcached(false), d_cached(false) { { d_instances.lock()->push_back(this); // report to the static list of ourself } - d_negcached = false; - d_cached = false; d_cache_ttl = ::arg().asNum("query-cache-ttl"); d_negcache_ttl = ::arg().asNum("negquery-cache-ttl"); d_qtype = 0;