]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
1643563 Variable copied when it could be moved
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 3 Dec 2025 08:54:23 +0000 (09:54 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 3 Dec 2025 08:54:23 +0000 (09:54 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-lua-conf.cc

index 0baece0efb03eb9259493995fdda0c4a695ea5dd..fb49e46a6bb69371dae93f8c27e617610cac2363 100644 (file)
@@ -776,7 +776,7 @@ void loadRecursorLuaConfig(const std::string& fname, ProxyMapping& proxyMapping,
           smn->add(subnet.second);
         }
       }
-      proxyMapping.insert_or_assign(netmask, {address, smn});
+      proxyMapping.insert_or_assign(netmask, {std::move(address), std::move(smn)});
     }
     catch (std::exception& e) {
       lci.d_slog->error(Logr::Error, e.what(), "Exception processing addProxyMapping", "exception", Logging::Loggable("std::exception"));