From: Remi Gacogne Date: Thu, 19 Nov 2020 09:53:06 +0000 (+0100) Subject: Fix the DNSName move assignement operator X-Git-Tag: auth-4.5.0-alpha0~19^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d1bb300460d5cc97b4599ea8eddeb7b6d35decf;p=thirdparty%2Fpdns.git Fix the DNSName move assignement operator A misplaced 'const' prevented it from being called, making every move of a DNSName into a full copy. Introduced in d720eb8add5ebda11867e8b404125e0b68ed2911. --- diff --git a/pdns/dnsname.hh b/pdns/dnsname.hh index 1e146e831f..7f7ee0ad3c 100644 --- a/pdns/dnsname.hh +++ b/pdns/dnsname.hh @@ -71,7 +71,7 @@ public: } return *this; } - DNSName& operator=(const DNSName&& rhs) + DNSName& operator=(DNSName&& rhs) { if (this != &rhs) { d_storage = std::move(rhs.d_storage);