fixed missing SSL_free when a new connection replaces the existing one

This commit is contained in:
csoler 2015-12-30 13:55:15 -05:00
parent aabfcb975c
commit cefa5d9f9e

View File

@ -1433,6 +1433,7 @@ int pqissl::accept_locked(SSL *ssl, int fd, const struct sockaddr_storage &forei
rslog(RSL_ALERT, pqisslzone,
"pqissl::accept() closing Previous/Existing ssl_connection");
SSL_shutdown(ssl_connection);
SSL_free (ssl_connection);
}
if ((sockfd > -1) && (sockfd != fd))