summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2004-10-25 11:14:16 +0000
committerDr. Stephen Henson <steve@openssl.org>2004-10-25 11:14:16 +0000
commitc284f20f002cc50038085b066064ecd84fb8fa95 (patch)
treef253cc1429153d655c71a2e59506c0620661328b /ssl
parent58ae65cd1a18a68892b1eb8bb55b7f11a5cf6ea9 (diff)
Fix race condition when SSL ciphers are initialized.
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_ciph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
index c31927706a..da231de213 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -169,7 +169,6 @@ static int init_ciphers=1;
static void load_ciphers(void)
{
- init_ciphers=0;
ssl_cipher_methods[SSL_ENC_DES_IDX]=
EVP_get_cipherbyname(SN_des_cbc);
ssl_cipher_methods[SSL_ENC_3DES_IDX]=
@@ -193,6 +192,7 @@ static void load_ciphers(void)
EVP_get_digestbyname(SN_md5);
ssl_digest_methods[SSL_MD_SHA1_IDX]=
EVP_get_digestbyname(SN_sha1);
+ init_ciphers=0;
}
static int sk_comp_cmp(const SSL_COMP * const *a,