diff --git a/include/brynet/net/TcpConnection.hpp b/include/brynet/net/TcpConnection.hpp index ae1b0d78..d8bd6055 100644 --- a/include/brynet/net/TcpConnection.hpp +++ b/include/brynet/net/TcpConnection.hpp @@ -82,7 +82,7 @@ namespace brynet { namespace net { { if (isServerSide) { - if (slHelper->getOpenSSLCTX() == nullptr || + if (sslHelper->getOpenSSLCTX() == nullptr || !session->initAcceptSSL(sslHelper->getOpenSSLCTX())) { throw std::runtime_error("init ssl failed");