]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Remove move-constructor and move copy operator for DownstreamState
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 16 Feb 2022 15:00:07 +0000 (16:00 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 22 Feb 2022 10:32:22 +0000 (11:32 +0100)
pdns/dnsdist.hh

index f03522db86ba0faf2e2f10c8f357ac59314280b8..371e353048c21f2096c9b2dd232cc76bb875797c 100644 (file)
@@ -691,9 +691,9 @@ struct CrossProtocolQuery;
 struct DownstreamState: public std::enable_shared_from_this<DownstreamState>
 {
   DownstreamState(const DownstreamState&) = delete;
-  DownstreamState(DownstreamState&&) = default;
+  DownstreamState(DownstreamState&&) = delete;
   DownstreamState& operator=(const DownstreamState&) = delete;
-  DownstreamState& operator=(DownstreamState&&) = default;
+  DownstreamState& operator=(DownstreamState&&) = delete;
 
   typedef std::function<std::tuple<DNSName, uint16_t, uint16_t>(const DNSName&, uint16_t, uint16_t, dnsheader*)> checkfunc_t;
   enum class Availability : uint8_t { Up, Down, Auto};