disable ERR_remove_thread_state if not required

This commit is contained in:
Norbert Federa 2016-11-25 10:39:20 +01:00
parent 53bd98883e
commit b2ad9803b7
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }