X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fengine%2Fhw_ncipher.c;h=39cf7f56dc836f22613d52fe21ed3408463be690;hp=da52912462a28b571b949068d3c3770f089d02cf;hb=883b0c2274872570cf7023d7567b1b963e2d039d;hpb=4f94d1a8b18cb35914eb253f75d96fec410694ad diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index da52912462..39cf7f56dc 100644 --- a/crypto/engine/hw_ncipher.c +++ b/crypto/engine/hw_ncipher.c @@ -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)