diff options
author | Andy Polyakov <appro@openssl.org> | 2018-07-20 13:22:24 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-07-25 16:37:31 +0200 |
commit | ceb8e32cbc9f6ddd17c5639a721f5314eb1f3acc (patch) | |
tree | b9360aa8d9e062bf577ad623216e01817c03b2c4 /crypto/dllmain.c | |
parent | crypto/cryptlib.c: resolve possible race in OPENSSL_isservice. (diff) | |
download | openssl-ceb8e32cbc9f6ddd17c5639a721f5314eb1f3acc.tar.xz openssl-ceb8e32cbc9f6ddd17c5639a721f5314eb1f3acc.zip |
crypto/dllmain.c: remove unused OPENSSL_NONPIC_relocated variable.
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/6752)
Diffstat (limited to 'crypto/dllmain.c')
-rw-r--r-- | crypto/dllmain.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crypto/dllmain.c b/crypto/dllmain.c index 81bcb2d054..c23b06b441 100644 --- a/crypto/dllmain.c +++ b/crypto/dllmain.c @@ -31,21 +31,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) switch (fdwReason) { case DLL_PROCESS_ATTACH: OPENSSL_cpuid_setup(); -# if defined(_WIN32_WINNT) - { - IMAGE_DOS_HEADER *dos_header = (IMAGE_DOS_HEADER *) hinstDLL; - IMAGE_NT_HEADERS *nt_headers; - - if (dos_header->e_magic == IMAGE_DOS_SIGNATURE) { - nt_headers = (IMAGE_NT_HEADERS *) ((char *)dos_header - + dos_header->e_lfanew); - if (nt_headers->Signature == IMAGE_NT_SIGNATURE && - hinstDLL != - (HINSTANCE) (nt_headers->OptionalHeader.ImageBase)) - OPENSSL_NONPIC_relocated = 1; - } - } -# endif break; case DLL_THREAD_ATTACH: break; |