From: Remi Gacogne Date: Mon, 3 Jul 2023 18:03:54 +0000 (+0200) Subject: dnsdist: Make clang-tidy happy X-Git-Tag: rec-5.0.0-alpha1~120^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12976%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Make clang-tidy happy We will have to come back if ComboAddress ever becomes heavier, but hey. --- diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index c88cb11130..c8931c5cdb 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -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; } }