]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: Coverity 1644498 Variable copied when it could be moved 16784/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Jan 2026 12:39:06 +0000 (13:39 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 27 Jan 2026 12:39:06 +0000 (13:39 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/ws-recursor.cc

index ba9e3c4cc84a28ff24b6e0af41e4ea1822393c53..4fcab9e715d4db38215b5718bda914610caab561 100644 (file)
@@ -693,7 +693,7 @@ static void apiServerOTConditionDetailPOST(HttpRequest* req, HttpResponse* resp)
     if (auto qid = document["qid"]; qid.is_number()) {
       condition.d_qid = qid.int_value();
     }
-    (*lock)->insert(netmask).second = condition;
+    (*lock)->insert(netmask).second = std::move(condition);
     updateOTConditions(**lock);
   }
   catch (NetmaskException&) {