diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_div.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_div.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_div.c b/src/lib/libcrypto/bn/bn_div.c index 692e618407..3225fa4424 100644 --- a/src/lib/libcrypto/bn/bn_div.c +++ b/src/lib/libcrypto/bn/bn_div.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_div.c,v 1.39 2023/02/16 10:41:03 jsing Exp $ */ | 1 | /* $OpenBSD: bn_div.c,v 1.40 2023/03/27 10:21:23 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -264,7 +264,7 @@ BN_div_internal(BIGNUM *quotient, BIGNUM *remainder, const BIGNUM *numerator, | |||
| 264 | if (!no_branch) { | 264 | if (!no_branch) { |
| 265 | if (BN_ucmp(numerator, divisor) < 0) { | 265 | if (BN_ucmp(numerator, divisor) < 0) { |
| 266 | if (remainder != NULL) { | 266 | if (remainder != NULL) { |
| 267 | if (BN_copy(remainder, numerator) == NULL) | 267 | if (!bn_copy(remainder, numerator)) |
| 268 | goto err; | 268 | goto err; |
| 269 | } | 269 | } |
| 270 | if (quotient != NULL) | 270 | if (quotient != NULL) |
