]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix the DNSName move assignement operator 10198/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 19 Nov 2020 09:53:06 +0000 (10:53 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Fri, 19 Mar 2021 13:18:54 +0000 (14:18 +0100)
A misplaced 'const' prevented it from being called, making every
move of a DNSName into a full copy.
Introduced in d720eb8add5ebda11867e8b404125e0b68ed2911.

(cherry picked from commit 8d1bb300460d5cc97b4599ea8eddeb7b6d35decf)

pdns/dnsname.hh

index 222edbaf3810e0f00eb7db35e603f5288f7fdf94..20d1994b29042e61379767efaff4274dd773352b 100644 (file)
@@ -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);