From d834293ae5e0ffed95773f6840e354cd9b76f28b Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 21 Jun 2021 16:33:00 +0200 Subject: [PATCH] move instead of copy data to inMSG Co-authored-by: Remi Gacogne --- pdns/pdns_recursor.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 0e782a1a63..0f6b87580e 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -493,7 +493,7 @@ LWResult::Result arecvtcp(PacketBuffer& data, const size_t len, shared_ptrtcphandler = handler; pident->tcpsock = handler->getDescriptor(); // We might have a partial result - pident->inMSG = data; + pident->inMSG = std::move(data); pident->inPos = pos; pident->inWanted = len; pident->inIncompleteOkay = incompleteOkay; @@ -5937,4 +5937,3 @@ int main(int argc, char **argv) return ret; } - -- 2.47.2