]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix coverity 1544951 copy_instead_of_move 14386/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2024 08:13:28 +0000 (10:13 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2024 08:13:28 +0000 (10:13 +0200)
pdns/recursordist/settings/cxxsupport.cc

index dd88d1f06092ba85d9d425218e56b90c8f5adb6c..92373e6d8c8b1ddf346aa66eaf08374416c4b536 100644 (file)
@@ -729,7 +729,7 @@ void fromLuaToRust(const LuaConfigItems& luaConfig, pdns::rust::settings::rec::D
       }
     }
     if (!dsRecords.empty()) {
-      pdns::rust::settings::rec::TrustAnchor trustAnchor{anchors.first.toString(), dsRecords};
+      pdns::rust::settings::rec::TrustAnchor trustAnchor{anchors.first.toString(), std::move(dsRecords)};
       dnssec.trustanchors.emplace_back(trustAnchor);
     }
   }