diff --git a/src/Native/Unix/System.Security.Cryptography.Native/openssl.cpp b/src/Native/Unix/System.Security.Cryptography.Native/openssl.cpp index ec0205d71eef..eba1dc2f4a06 100644 --- a/src/Native/Unix/System.Security.Cryptography.Native/openssl.cpp +++ b/src/Native/Unix/System.Security.Cryptography.Native/openssl.cpp @@ -1271,12 +1271,11 @@ static void LockingCallback(int mode, int n, const char* file, int line) result = pthread_mutex_unlock(&g_locks[n]); } -#pragma clang diagnostic pop - if (result != 0) { assert(0 && "LockingCallback failed."); } +#pragma clang diagnostic pop } #ifdef __APPLE__