]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Security::ServerOptions copy-constructor (#513)
authorAmos Jeffries <yadij@users.noreply.github.com>
Wed, 20 Nov 2019 05:20:04 +0000 (05:20 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 21 Nov 2019 05:18:37 +0000 (05:18 +0000)
clientCaStack uses a std::unique_ptr which cannot be copied.

src/security/ServerOptions.h

index 67ad143970e530c3bd38531a0c2936f74776ec8c..78103035bf7902f07b91352ca210d98c99bd692f 100644 (file)
@@ -35,7 +35,7 @@ public:
         // is more secure to have only a small set of trusted CA.
         flags.tlsDefaultCa.defaultTo(false);
     }
-    ServerOptions(const ServerOptions &) = default;
+    ServerOptions(const ServerOptions &o): ServerOptions() { *this = o; }
     ServerOptions &operator =(const ServerOptions &);
     ServerOptions(ServerOptions &&o) { this->operator =(o); }
     ServerOptions &operator =(ServerOptions &&o) { this->operator =(o); return *this; }