@ -400,19 +400,19 @@ static int tcptls_stream_close(void *cookie)
SSL_get_error ( stream - > ssl , res ) ) ;
}
# if defined(OPENSSL_ API_COMPAT) && OPENSSL_API_COMPAT >= 0x10100000L
# if defined(OPENSSL_ VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
if ( ! SSL_is_server ( stream - > ssl ) ) {
# else
if ( ! stream - > ssl - > server ) {
# endif
/* For client threads, ensure that the error stack is cleared */
# if !defined(OPENSSL_ API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L
# if OPENSSL_VERSION_NUMBER >= 0x10000000L
# if !defined(OPENSSL_ VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100000L
# if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10000000L
ERR_remove_thread_state ( NULL ) ;
# else
ERR_remove_state ( 0 ) ;
# endif /* OPENSSL_VERSION_NUMBER >= 0x10000000L */
# endif /* !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < 0x10100000L */
# endif /* openssl == 1.0 */
# endif /* openssl >= 1.1 */
}
SSL_free ( stream - > ssl ) ;