]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect #ifdef
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 28 Sep 2016 06:30:47 +0000 (08:30 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 28 Sep 2016 06:30:47 +0000 (08:30 +0200)
fixes #12749

lib/base/tlsutility.cpp

index 409a1dcc52f327d87f2a544844c72204c40773d8..f1c45f76add20dc740406ef084872bcdd99af3dc 100644 (file)
@@ -197,7 +197,8 @@ void SetTlsProtocolminToSSLContext(const boost::shared_ptr<SSL_CTX>& context, co
        if (tlsProtocolmin == SSL_TXT_TLSV1_1)
                flags |= SSL_OP_NO_TLSv1;
        else
-#elif defined(SSL_TXT_TLSV1_2)
+#endif /* SSL_TXT_TLSV1_1 */
+#ifdef SSL_TXT_TLSV1_2
        if (tlsProtocolmin == SSL_TXT_TLSV1_2)
                flags |= SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1;
        else