diff options
author | simon <simon@FreeBSD.org> | 2006-10-01 07:38:44 +0000 |
---|---|---|
committer | simon <simon@FreeBSD.org> | 2006-10-01 07:38:44 +0000 |
commit | 387e65d767783525d46f90e7415169ff0015f809 (patch) | |
tree | ddbe8498869205da709070fe1d40135d495b9326 /crypto/openssl/crypto/err | |
parent | fb3c70eda88d3175627edc6a3316b4508b3d29c5 (diff) | |
download | FreeBSD-src-387e65d767783525d46f90e7415169ff0015f809.zip FreeBSD-src-387e65d767783525d46f90e7415169ff0015f809.tar.gz |
Vendor import of OpenSSL 0.9.8d.
Diffstat (limited to 'crypto/openssl/crypto/err')
-rw-r--r-- | crypto/openssl/crypto/err/err.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/crypto/openssl/crypto/err/err.c b/crypto/openssl/crypto/err/err.c index 72e3f3a..96bd255 100644 --- a/crypto/openssl/crypto/err/err.c +++ b/crypto/openssl/crypto/err/err.c @@ -548,9 +548,20 @@ static void build_SYS_str_reasons(void) int i; static int init = 1; - if (!init) return; - + CRYPTO_r_lock(CRYPTO_LOCK_ERR); + if (!init) + { + CRYPTO_r_unlock(CRYPTO_LOCK_ERR); + return; + } + + CRYPTO_r_unlock(CRYPTO_LOCK_ERR); CRYPTO_w_lock(CRYPTO_LOCK_ERR); + if (!init) + { + CRYPTO_w_unlock(CRYPTO_LOCK_ERR); + return; + } for (i = 1; i <= NUM_SYS_STR_REASONS; i++) { |