From ff3763e9a70256cdfb31ed9c6ea80b7387c3aa45 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 20 Nov 2019 05:20:04 +0000 Subject: [PATCH] Fix Security::ServerOptions copy-constructor (#513) clientCaStack uses a std::unique_ptr which cannot be copied. --- src/security/ServerOptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/security/ServerOptions.h b/src/security/ServerOptions.h index 67ad143970..78103035bf 100644 --- a/src/security/ServerOptions.h +++ b/src/security/ServerOptions.h @@ -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; } -- 2.47.3