]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix clang-tidy warning of unnecessary std::move() for const ref 15388/head
authorOliver Chen <oliver.chen@nokia-sbell.com>
Mon, 14 Apr 2025 12:03:28 +0000 (12:03 +0000)
committerOliver Chen <oliver.chen@nokia-sbell.com>
Mon, 14 Apr 2025 12:03:28 +0000 (12:03 +0000)
pdns/dnsdistdist/dnsdist-backend.cc

index 2465a2b72628a327e42096cea3d518a2bd00fbe2..31e9d254cd5dd06d3627121ec91fb5afe4e53f3a 100644 (file)
@@ -452,7 +452,7 @@ void DownstreamState::handleUDPTimeout(IDState& ids)
   const auto& chains = dnsdist::configuration::getCurrentRuntimeConfiguration().d_ruleChains;
   const auto& timeoutRespRules = dnsdist::rules::getResponseRuleChain(chains, dnsdist::rules::ResponseRuleChain::TimeoutResponseRules);
   auto sender = ids.internal.du == nullptr ? nullptr : ids.internal.du->getQuerySender();
-  if (!handleTimeoutResponseRules(timeoutRespRules, ids.internal, shared_from_this(), std::move(sender))) {
+  if (!handleTimeoutResponseRules(timeoutRespRules, ids.internal, shared_from_this(), sender)) {
     DOHUnitInterface::handleTimeout(std::move(ids.internal.du));
   }