SSL_accept logic fix