]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Make clang-tidy happy 12976/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2023 18:03:54 +0000 (20:03 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2023 18:03:54 +0000 (20:03 +0200)
We will have to come back if ComboAddress ever becomes heavier, but
hey.

pdns/dnsdistdist/doh.cc

index c88cb11130b314ba246330bb9208b0a8bd9cc90b..c8931c5cdb13534dac4d4f92506579d4e3dc627a 100644 (file)
@@ -976,7 +976,7 @@ static int doh_handler(h2o_handler_t *self, h2o_req_t *req)
     if (dsc->df->d_trustForwardedForHeader) {
       auto newRemote = processForwardedForHeader(req, remote);
       if (newRemote) {
-        remote = std::move(*newRemote);
+        remote = *newRemote;
       }
     }