fix submitted by Andy Schneider <andy.schneider@bjss.co.uk>

(in main branch, hn_ncipher.c is already correct)
This commit is contained in:
Bodo Möller
2001-11-23 20:58:40 +00:00
parent 4f94d1a8b1
commit 883b0c2274
3 changed files with 13 additions and 2 deletions

View File

@@ -1204,8 +1204,8 @@ static int hwcrhk_mutex_init(HWCryptoHook_Mutex* mt,
{
mt->lockid = CRYPTO_get_new_dynlockid();
if (mt->lockid == 0)
return -1;
return 0;
return 1; /* failure */
return 0; /* success */
}
static int hwcrhk_mutex_lock(HWCryptoHook_Mutex *mt)