From 62d326cb4e50a66b7d20ac55a0808f880deb43d9 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 27 Mar 2023 10:20:27 +0000 Subject: Use bn_copy() rather than inlining it ok jsing --- src/lib/libcrypto/bn/bn_gf2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libcrypto/bn/bn_gf2m.c b/src/lib/libcrypto/bn/bn_gf2m.c index c90c9f64de..3a0accb4a2 100644 --- a/src/lib/libcrypto/bn/bn_gf2m.c +++ b/src/lib/libcrypto/bn/bn_gf2m.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_gf2m.c,v 1.30 2023/03/27 08:49:34 tb Exp $ */ +/* $OpenBSD: bn_gf2m.c,v 1.31 2023/03/27 10:20:27 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -967,7 +967,7 @@ BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], return BN_one(r); if (BN_abs_is_word(b, 1)) - return BN_copy(r, a) != NULL; + return bn_copy(r, a); BN_CTX_start(ctx); if ((u = BN_CTX_get(ctx)) == NULL) -- cgit v1.2.3-55-g6feb