diff options
Diffstat (limited to '')
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index 10647ad3dd..c880e78dd3 100644 --- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_mod_exp.c,v 1.25 2023/03/26 22:09:08 tb Exp $ */ | 1 | /* $OpenBSD: bn_mod_exp.c,v 1.26 2023/03/27 08:52:57 tb Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> |
@@ -261,7 +261,7 @@ generate_test_triple(int reduce, BIGNUM *a, BIGNUM *p, BIGNUM *m, BN_CTX *ctx) | |||
261 | if ((mmodified = BN_CTX_get(ctx)) == NULL) | 261 | if ((mmodified = BN_CTX_get(ctx)) == NULL) |
262 | goto err; | 262 | goto err; |
263 | 263 | ||
264 | if (BN_copy(mmodified, m) == NULL) | 264 | if (!bn_copy(mmodified, m)) |
265 | goto err; | 265 | goto err; |
266 | 266 | ||
267 | multiple = arc4random_uniform(1023) + 2; | 267 | multiple = arc4random_uniform(1023) + 2; |
@@ -319,7 +319,7 @@ generate_test_quintuple(int reduce, BIGNUM *a1, BIGNUM *p1, | |||
319 | if ((mmodified = BN_CTX_get(ctx)) == NULL) | 319 | if ((mmodified = BN_CTX_get(ctx)) == NULL) |
320 | goto err; | 320 | goto err; |
321 | 321 | ||
322 | if (BN_copy(mmodified, m) == NULL) | 322 | if (!bn_copy(mmodified, m)) |
323 | goto err; | 323 | goto err; |
324 | 324 | ||
325 | multiple = arc4random_uniform(16) + 2; | 325 | multiple = arc4random_uniform(16) + 2; |