Commit 84b53d6f authored by hyperxor's avatar hyperxor

One more change

parent 855286c5
...@@ -315,7 +315,7 @@ void Listener::handleNewConnection() { ...@@ -315,7 +315,7 @@ void Listener::handleNewConnection() {
#ifdef PISTACHE_USE_SSL #ifdef PISTACHE_USE_SSL
if (this->useSSL_) { if (this->useSSL_) {
ssl = SSL_new((SSL_CTX *)this->ssl_ctx_); SSL* ssl_data = SSL_new((SSL_CTX *)this->ssl_ctx_);
if (ssl == NULL) { if (ssl == NULL) {
close(client_fd); close(client_fd);
throw std::runtime_error("Cannot create SSL connection"); throw std::runtime_error("Cannot create SSL connection");
...@@ -330,6 +330,7 @@ void Listener::handleNewConnection() { ...@@ -330,6 +330,7 @@ void Listener::handleNewConnection() {
close(client_fd); close(client_fd);
return; return;
} }
ssl = static_cast<void*>(ssl);
} }
#endif /* PISTACHE_USE_SSL */ #endif /* PISTACHE_USE_SSL */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment