From: Otto Moerbeek Date: Tue, 25 Aug 2020 07:43:15 +0000 (+0200) Subject: Do not use ref X-Git-Tag: rec-4.4.0-beta1~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e9836281297a8c62d832bc81bc7bb60e22db30a;p=thirdparty%2Fpdns.git Do not use ref Co-authored-by: Remi Gacogne --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 9469dc91ef..1c4717b762 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -2855,7 +2855,7 @@ static void handleNewUDPQuestion(int fd, FDMultiplexer::funcparam_t& var) } if(g_weDistributeQueries) { - const std::string& localdata = data; + std::string localdata = data; distributeAsyncFunction(data, [localdata, fromaddr, dest, source, destination, tv, fd, proxyProtocolValues]() mutable { return doProcessUDPQuestion(localdata, fromaddr, dest, source, destination, tv, fd, proxyProtocolValues); }); }