disable ERR_remove_thread_state if not required
authorNorbert Federa <norbert.federa@thincast.com>
Fri, 25 Nov 2016 09:39:20 +0000 (10:39 +0100)
committerNorbert Federa <norbert.federa@thincast.com>
Fri, 25 Nov 2016 09:39:20 +0000 (10:39 +0100)
winpr/libwinpr/utils/ssl.c

index 86e6b08..a2e0f29 100644 (file)
@@ -290,6 +290,7 @@ BOOL winpr_CleanupSSL(DWORD flags)
                flags |= WINPR_SSL_CLEANUP_THREAD;
        }
 
+#ifdef WINPR_OPENSSL_LOCKING_REQUIRED
        if (flags & WINPR_SSL_CLEANUP_THREAD)
        {
 #if (OPENSSL_VERSION_NUMBER < 0x10000000L)
@@ -298,7 +299,7 @@ BOOL winpr_CleanupSSL(DWORD flags)
                ERR_remove_thread_state(NULL);
 #endif
        }
-
+#endif
        return TRUE;
 }