]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
1643551 Variable copied when it could be moved 16587/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 3 Dec 2025 08:56:31 +0000 (09:56 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 3 Dec 2025 08:56:31 +0000 (09:56 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/rec-rust-lib/cxxsupport.cc

index 2c50e00ab1b716fdfe2353677a523bc220572052..bce09eface349fa507578556aadbc163eaf34657 100644 (file)
@@ -1309,7 +1309,7 @@ void fromRustToLuaConfig(const rust::Vec<pdns::rust::settings::rec::ProxyMapping
         smn->add(DNSName(std::string(dom)));
       }
     }
-    proxyMapping.insert_or_assign(subnet, {address, smn});
+    proxyMapping.insert_or_assign(subnet, {std::move(address), std::move(smn)});
   }
 }