fix race condition
authorBodo Möller <bodo@openssl.org>
Thu, 19 Sep 2002 11:27:37 +0000 (11:27 +0000)
committerBodo Möller <bodo@openssl.org>
Thu, 19 Sep 2002 11:27:37 +0000 (11:27 +0000)
PR: 262

CHANGES
ssl/s3_clnt.c

diff --git a/CHANGES b/CHANGES
index 74f417872b45c466c5e4551e6869c7c134797886..84d9e5fe90b35c45d9a39acc7182864e4a5c53ff 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,9 @@
 
  Changes between 0.9.6g and 0.9.6h  [xx XXX xxxx]
 
+  *) Fix race condition in SSLv3_client_method().
+     [Bodo Moeller]
+
   *) Reorder cleanup sequence in SSL_CTX_free(): only remove the ex_data after
      the cached sessions are flushed, as the remove_cb() might use ex_data
      contents. Bug found by Sam Varshavchik <mrsam@courier-mta.com>
index 32b9cea1cabffa727c22ce1d7bdb0e462e3db875..b0c08d04982f46bda1fe11a848fe926989397800 100644 (file)
@@ -146,11 +146,11 @@ SSL_METHOD *SSLv3_client_method(void)
 
        if (init)
                {
-               init=0;
                memcpy((char *)&SSLv3_client_data,(char *)sslv3_base_method(),
                        sizeof(SSL_METHOD));
                SSLv3_client_data.ssl_connect=ssl3_connect;
                SSLv3_client_data.get_ssl_method=ssl3_get_client_method;
+               init=0;
                }
        return(&SSLv3_client_data);
        }