diff options
Diffstat (limited to 'lib/libcrypto/ecdsa')
-rw-r--r-- | lib/libcrypto/ecdsa/ecs_ossl.c | 4 |
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; } |