diff --git a/ixwebsocket/IXSocketOpenSSL.cpp b/ixwebsocket/IXSocketOpenSSL.cpp index a504a5cb..60988e34 100644 --- a/ixwebsocket/IXSocketOpenSSL.cpp +++ b/ixwebsocket/IXSocketOpenSSL.cpp @@ -503,14 +503,14 @@ namespace ix errMsg += ERR_error_string(sslErr, nullptr); return false; } - - SSL_CTX_set_verify( - _ssl_context, SSL_VERIFY_PEER, [](int preverify, X509_STORE_CTX*) -> int { - return preverify; - }); - SSL_CTX_set_verify_depth(_ssl_context, 4); } } + + SSL_CTX_set_verify( + _ssl_context, SSL_VERIFY_PEER, [](int preverify, X509_STORE_CTX*) -> int { + return preverify; + }); + SSL_CTX_set_verify_depth(_ssl_context, 4); } else {