fix submitted by Andy Schneider <andy.schneider@bjss.co.uk>
authorBodo Möller <bodo@openssl.org>
Fri, 23 Nov 2001 20:57:59 +0000 (20:57 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 23 Nov 2001 20:57:59 +0000 (20:57 +0000)
CHANGES
crypto/cryptlib.c

diff --git a/CHANGES b/CHANGES
index a66bf6141d8f549f3f97d59383ed37d3cef9760f..7f70743ec4aff0a4b9561347c2f768da15fd96c4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,14 @@
 
  Changes between 0.9.6b and 0.9.6c  [XX xxx XXXX]
 
+  *) Release CRYPTO_LOCK_DYNLOCK when CRYPTO_destroy_dynlockid()
+     returns early because it has nothing to do.
+     [Andy Schneider <andy.schneider@bjss.co.uk>]
+
+  *) [In 0.9.6c-engine release:]
+     Fix mutex callback return values in crypto/engine/hw_ncipher.c.
+     [Andy Schneider <andy.schneider@bjss.co.uk>]
+
   *) Add a configuration entry for OS/390 Unix.  The C compiler 'c89'
      is called via tools/c89.sh because arguments have to be
      rearranged (all '-L' options must appear before the first object
index a98bf89e1b8a1ecb8390ff8ece59ff8de4d3b9cc..8fd2d4d26b82a73eab02843913f659585bdceb61 100644 (file)
@@ -228,7 +228,10 @@ void CRYPTO_destroy_dynlockid(int i)
        CRYPTO_w_lock(CRYPTO_LOCK_DYNLOCK);
 
        if (dyn_locks == NULL || i >= sk_CRYPTO_dynlock_num(dyn_locks))
+               {
+               CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
                return;
+               }
        pointer = sk_CRYPTO_dynlock_value(dyn_locks, i);
        if (pointer != NULL)
                {