From: Otto Moerbeek Date: Wed, 26 Jun 2024 08:13:28 +0000 (+0200) Subject: Fix coverity 1544951 copy_instead_of_move X-Git-Tag: rec-5.2.0-alpha1~214^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14386%2Fhead;p=thirdparty%2Fpdns.git Fix coverity 1544951 copy_instead_of_move --- diff --git a/pdns/recursordist/settings/cxxsupport.cc b/pdns/recursordist/settings/cxxsupport.cc index dd88d1f060..92373e6d8c 100644 --- a/pdns/recursordist/settings/cxxsupport.cc +++ b/pdns/recursordist/settings/cxxsupport.cc @@ -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); } }