diff options
author | Richard Levitte <levitte@openssl.org> | 2003-10-06 09:09:44 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-10-06 09:09:44 +0000 |
commit | c40b9bdefb59be7e640cd7a10bfd2fa26ea1fe7b (patch) | |
tree | 9264f58ab5c0cbe3824adc5c8ecc3883ddb1e83f /crypto/cryptlib.c | |
parent | 6895cca89d47b30708e41da5a7f86277f526cbe6 (diff) | |
download | openssl-new-c40b9bdefb59be7e640cd7a10bfd2fa26ea1fe7b.tar.gz |
Setting the ex_data index is unsafe in a threaded environment, so
let's wrap it with a lock.
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 9c38f15ab2..009c3be4c0 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -168,7 +168,8 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] = "bn", "ec_pre_comp", "store", -#if CRYPTO_NUM_LOCKS != 38 + "comp", +#if CRYPTO_NUM_LOCKS != 39 # error "Inconsistency between crypto.h and cryptlib.c" #endif }; |