summaryrefslogtreecommitdiff
path: root/lib/libcrypto/ecdsa
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-03-27 10:21:24 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-03-27 10:21:24 +0000
commit202eed5ee6d7fc7037116bd00ca328efbb388abf (patch)
tree5d527b2db04ae28fa0751766bcc980594d29f644 /lib/libcrypto/ecdsa
parent2f22c1ab47404263f97cfcfea37b903793276723 (diff)
Convert BN_copy() with explicit comparison against NULL to bn_copy()
ok jsing
Diffstat (limited to 'lib/libcrypto/ecdsa')
-rw-r--r--lib/libcrypto/ecdsa/ecs_ossl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ecdsa/ecs_ossl.c b/lib/libcrypto/ecdsa/ecs_ossl.c
index 271c8435f8a..25bcb06e887 100644
--- a/lib/libcrypto/ecdsa/ecs_ossl.c
+++ b/lib/libcrypto/ecdsa/ecs_ossl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecs_ossl.c,v 1.29 2023/03/07 09:27:10 jsing Exp $ */
+/* $OpenBSD: ecs_ossl.c,v 1.30 2023/03/27 10:21:23 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project
*/
@@ -322,7 +322,7 @@ ecdsa_do_sign(const unsigned char *dgst, int dgst_len,
ckinv = kinv;
} else {
ckinv = in_kinv;
- if (BN_copy(ret->r, in_r) == NULL) {
+ if (!bn_copy(ret->r, in_r)) {
ECDSAerror(ERR_R_MALLOC_FAILURE);
goto err;
}