From: Geoff Thorpe Date: Mon, 26 Jun 2000 15:58:33 +0000 (+0000) Subject: Strange how one line can make a world of difference, particularly when X-Git-Tag: OpenSSL-engine-0_9_6-beta1~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=665b5ab5a74fae76c489feaf77ade2553588446a;p=oweals%2Fopenssl.git Strange how one line can make a world of difference, particularly when the one line turns an error return value into a success return value. :-) "openssl speed -engine hwcrhk rsa1024" now passes through ok. --- diff --git a/crypto/engine/hw_ncipher.c b/crypto/engine/hw_ncipher.c index a618de6048..bab20d1e28 100644 --- a/crypto/engine/hw_ncipher.c +++ b/crypto/engine/hw_ncipher.c @@ -615,6 +615,8 @@ static int hwcrhk_rsa_mod_exp(BIGNUM *r, BIGNUM *I, RSA *rsa) goto err; } } + /* If we're here, we must be here with some semblance of success :-) */ + to_return = 1; err: return to_return; }