From 1a4499555202ee242660e7d9efc47a53936d132c Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Tue, 17 Sep 2024 13:22:22 -0400 Subject: [PATCH] Remove invalid assert --- .../Common/src/System/Security/Cryptography/RSAOpenSsl.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs b/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs index 96867e0f5e9d9b..331594af026fc5 100644 --- a/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs +++ b/src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs @@ -654,7 +654,6 @@ private void FreeKey() [MemberNotNull(nameof(_key))] private void SetKey(SafeEvpPKeyHandle newKey) { - Debug.Assert(!newKey.IsInvalid); FreeKey(); _key = new Lazy(newKey);