From: Dr. Stephen Henson Date: Tue, 19 Jun 2001 00:04:57 +0000 (+0000) Subject: Don't set pointer if add_lock_callback used. X-Git-Tag: OpenSSL_0_9_6c~182^2~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cc1f498a171f9268859a443ae8d4cd7fce6a43b;p=openssl Don't set pointer if add_lock_callback used. --- diff --git a/CHANGES b/CHANGES index e8ffbf700c..cf79a8ea10 100644 --- a/CHANGES +++ b/CHANGES @@ -11,6 +11,11 @@ *) applies to 0.9.6a (/0.9.6b) and 0.9.7 +) applies to 0.9.7 only + *) Don't change *pointer in CRYPTO_add_lock() is add_lock_callback is + used: it isn't thread safe and the add_lock_callback should handle + that itself. + [Paul Rose ] + *) Verify that incoming data obeys the block size in ssl3_enc (ssl/s3_enc.c) and tls1_enc (ssl/t1_enc.c). [Bodo Moeller] diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index e9c9b3b5a2..b733abafee 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -431,7 +431,6 @@ int CRYPTO_add_lock(int *pointer, int amount, int type, const char *file, CRYPTO_get_lock_name(type), file,line); #endif - *pointer=ret; } else {