diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_isqrt.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_isqrt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_isqrt.c b/src/lib/libcrypto/bn/bn_isqrt.c index 81f90b10be..ec77e1b078 100644 --- a/src/lib/libcrypto/bn/bn_isqrt.c +++ b/src/lib/libcrypto/bn/bn_isqrt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_isqrt.c,v 1.5 2022/12/01 21:59:54 tb Exp $ */ | 1 | /* $OpenBSD: bn_isqrt.c,v 1.6 2022/12/17 15:56:25 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -74,8 +74,7 @@ bn_isqrt(BIGNUM *out_sqrt, int *out_perfect, const BIGNUM *n, BN_CTX *in_ctx) | |||
| 74 | 74 | ||
| 75 | if (BN_is_zero(n)) { | 75 | if (BN_is_zero(n)) { |
| 76 | perfect = 1; | 76 | perfect = 1; |
| 77 | if (!BN_zero(a)) | 77 | BN_zero(a); |
| 78 | goto err; | ||
| 79 | goto done; | 78 | goto done; |
| 80 | } | 79 | } |
| 81 | 80 | ||
