From: Charles-Henri Bruyand Date: Tue, 29 Jun 2021 14:45:56 +0000 (+0200) Subject: move meta content instead of copying X-Git-Tag: dnsdist-1.7.0-alpha1~106^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b038b994f9f89fe7f6ff233fccf4a26d7b44b2;p=thirdparty%2Fpdns.git move meta content instead of copying --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 542a9754f3..7d5b385ac5 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1750,7 +1750,7 @@ static void startDoResolve(void *p) dq.proxyProtocolValues = &dc->d_proxyProtocolValues; dq.extendedErrorCode = &dc->d_extendedErrorCode; dq.extendedErrorExtra = &dc->d_extendedErrorExtra; - dq.meta = dc->d_meta; + dq.meta = std::move(dc->d_meta); if(ednsExtRCode != 0) { goto sendit;