PR: 2470
authorDr. Stephen Henson <steve@openssl.org>
Wed, 22 Jun 2011 15:38:21 +0000 (15:38 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 22 Jun 2011 15:38:21 +0000 (15:38 +0000)
Submitted by: Corinna Vinschen <vinschen@redhat.com>
Reviewed by: steve

Don't call ERR_remove_state from DllMain.

crypto/cryptlib.c

index 8bc5189..d4b2362 100644 (file)
@@ -208,9 +208,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
        case DLL_THREAD_ATTACH:
                break;
        case DLL_THREAD_DETACH:
-#ifndef OPENSSL_FIPS
-               ERR_remove_state(0);
-#endif
                break;
        case DLL_PROCESS_DETACH:
                break;