aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/crypto_callback.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-06-17 20:17:40 +0200
committerSverker Eriksson <[email protected]>2014-06-17 20:17:40 +0200
commit70c6e5a1baa326c9809851e00b8849cb6706f812 (patch)
tree7d4fe71a02361f8ef2a659a9f6b1aae3fe08d967 /lib/crypto/c_src/crypto_callback.c
parent07b8f441ca711f9812fad9e9115bab3c3aa92f79 (diff)
downloadotp-70c6e5a1baa326c9809851e00b8849cb6706f812.tar.gz
otp-70c6e5a1baa326c9809851e00b8849cb6706f812.tar.bz2
otp-70c6e5a1baa326c9809851e00b8849cb6706f812.zip
crypto: Fix crypto for debug and valgrind
without relying on opt-version has been built. Removed ASSERT to make crypto_callback.debug.so work without dynamic linking to libcrypto.so.
Diffstat (limited to 'lib/crypto/c_src/crypto_callback.c')
-rw-r--r--lib/crypto/c_src/crypto_callback.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/crypto/c_src/crypto_callback.c b/lib/crypto/c_src/crypto_callback.c
index a08dcec463..b4c175ae43 100644
--- a/lib/crypto/c_src/crypto_callback.c
+++ b/lib/crypto/c_src/crypto_callback.c
@@ -107,8 +107,6 @@ static INLINE void locking(int mode, ErlNifRWLock* lock)
static void locking_function(int mode, int n, const char *file, int line)
{
- ASSERT(n>=0 && n<CRYPTO_num_locks());
-
locking(mode, lock_vec[n]);
}