summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_kron.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bn/bn_kron.c')
-rw-r--r--crypto/bn/bn_kron.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_kron.c b/crypto/bn/bn_kron.c
index aba48dda4a..20b593e679 100644
--- a/crypto/bn/bn_kron.c
+++ b/crypto/bn/bn_kron.c
@@ -146,7 +146,7 @@ int BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx)
if (BN_is_zero(A))
{
- ret = BN_is_one(B);
+ ret = BN_is_one(B) ? ret : 0;
goto end;
}