Oops, do not unlock CRYPTO_LOCK_DYNLOCK when we locked
authorRichard Levitte <levitte@openssl.org>
Thu, 7 Feb 2002 21:49:21 +0000 (21:49 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 7 Feb 2002 21:49:21 +0000 (21:49 +0000)
CRYPTO_LOCK_RAND...

crypto/engine/hw_aep.c

index 78caef4..c661dfa 100644 (file)
@@ -700,7 +700,7 @@ static int aep_rand(unsigned char *buf,int len )
   
        return 1;
  err:
-       CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
+       CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
  err_nounlock:
        return 0;
        }