From a7da19df49ebd0745449eb206ca035a18500d251 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 25 Jul 2025 16:28:56 +0200 Subject: [PATCH] dnsdist: Ensure the runtime configuration is updated in the SNMP thread Signed-off-by: Remi Gacogne --- pdns/dnsdistdist/dnsdist-snmp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-snmp.cc b/pdns/dnsdistdist/dnsdist-snmp.cc index 9d4a05c1f0..1f153236ec 100644 --- a/pdns/dnsdistdist/dnsdist-snmp.cc +++ b/pdns/dnsdistdist/dnsdist-snmp.cc @@ -284,7 +284,7 @@ static netsnmp_variable_list* backendStatTable_get_first_data_point(void** loop_ /* get a copy of the shared_ptrs so they are not destroyed while we process the request */ - auto backends = dnsdist::configuration::getCurrentRuntimeConfiguration().d_backends; + const auto& backends = dnsdist::configuration::refreshLocalRuntimeConfiguration().d_backends; s_servers.clear(); s_servers.reserve(backends.size()); for (auto& server : backends) { -- 2.47.3