mirror of https://github.com/FreeRDP/FreeRDP
disable ERR_remove_thread_state if not required
This commit is contained in:
parent
53bd98883e
commit
b2ad9803b7
|
@ -290,6 +290,7 @@ BOOL winpr_CleanupSSL(DWORD flags)
|
||||||
flags |= WINPR_SSL_CLEANUP_THREAD;
|
flags |= WINPR_SSL_CLEANUP_THREAD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WINPR_OPENSSL_LOCKING_REQUIRED
|
||||||
if (flags & WINPR_SSL_CLEANUP_THREAD)
|
if (flags & WINPR_SSL_CLEANUP_THREAD)
|
||||||
{
|
{
|
||||||
#if (OPENSSL_VERSION_NUMBER < 0x10000000L)
|
#if (OPENSSL_VERSION_NUMBER < 0x10000000L)
|
||||||
|
@ -298,7 +299,7 @@ BOOL winpr_CleanupSSL(DWORD flags)
|
||||||
ERR_remove_thread_state(NULL);
|
ERR_remove_thread_state(NULL);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue