From de653b15d35fd98b0ffe125f52974ab4703b067c Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 27 Mar 2023 10:20:27 +0000 Subject: [PATCH] Use bn_copy() rather than inlining it ok jsing --- lib/libcrypto/bn/bn_gf2m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/bn/bn_gf2m.c b/lib/libcrypto/bn/bn_gf2m.c index c90c9f64de2..3a0accb4a23 100644 --- a/lib/libcrypto/bn/bn_gf2m.c +++ b/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) -- 2.20.1