From d14cba32fe94e4b91947ee5313621349ec433305 Mon Sep 17 00:00:00 2001 From: Radek Zikmund Date: Wed, 16 Feb 2022 12:57:02 +0100 Subject: [PATCH] Remove OpenSSL error queue checking after initialization --- .../System.Net.Security.Native/Interop.Initialization.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs b/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs index 39a0d67f2021cb..cf55076dfbb45e 100644 --- a/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs +++ b/src/libraries/Common/src/Interop/Unix/System.Net.Security.Native/Interop.Initialization.cs @@ -24,11 +24,6 @@ static SslInitializer() //Call ssl specific initializer Ssl.EnsureLibSslInitialized(); - if (Interop.Crypto.ErrPeekLastError() != 0) - { - // It is going to be wrapped in a type load exception but will have the error information - throw Interop.Crypto.CreateOpenSslCryptographicException(); - } } #endif