From: Remi Gacogne Date: Tue, 16 Jan 2018 14:55:38 +0000 (+0100) Subject: dnsdist: Fix a warning about braces around scalar initializer X-Git-Tag: dnsdist-1.3.0~141^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6188%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix a warning about braces around scalar initializer --- diff --git a/pdns/dnsdistdist/tcpiohandler.hh b/pdns/dnsdistdist/tcpiohandler.hh index c830e59112..4f37804096 100644 --- a/pdns/dnsdistdist/tcpiohandler.hh +++ b/pdns/dnsdistdist/tcpiohandler.hh @@ -19,6 +19,10 @@ protected: class TLSCtx { public: + TLSCtx() + { + d_rotatingTicketsKey.clear(); + } virtual ~TLSCtx() {} virtual std::unique_ptr getConnection(int socket, unsigned int timeout, time_t now) = 0; virtual void rotateTicketsKey(time_t now) = 0; @@ -53,7 +57,7 @@ public: virtual size_t getTicketsKeysCount() = 0; protected: - std::atomic_flag d_rotatingTicketsKey{ATOMIC_FLAG_INIT}; + std::atomic_flag d_rotatingTicketsKey; time_t d_ticketsKeyRotationDelay{0}; time_t d_ticketsKeyNextRotation{0}; };