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 78caef4d07b737d7b3446b8d18b2e740754f18fa..c661dfa14d39b6a402371b2419da7585776f6a6a 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;
        }