From: tb Date: Mon, 27 Mar 2023 10:20:27 +0000 (+0000) Subject: Use bn_copy() rather than inlining it X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=de653b15d35fd98b0ffe125f52974ab4703b067c;p=openbsd Use bn_copy() rather than inlining it ok jsing --- 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)