]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
move meta content instead of copying
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Tue, 29 Jun 2021 14:45:56 +0000 (16:45 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 30 Jun 2021 15:47:59 +0000 (17:47 +0200)
pdns/pdns_recursor.cc

index 542a9754f3db5b9bd9ab6956b3fe8a38bd3e1ac3..7d5b385ac5e683463664d0b32fe1cc10eab33580 100644 (file)
@@ -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;