From 948a1dae7b741967ea1ac54e1889c41b32fa03b6 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 25 Jun 2023 18:35:28 +0000 Subject: [PATCH] ecdsa_do_sign(): remove useless ecdsa_check() call ok jsing --- lib/libcrypto/ecdsa/ecs_ossl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/ecdsa/ecs_ossl.c b/lib/libcrypto/ecdsa/ecs_ossl.c index 9702cd6dab9..02e38109bc1 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.33 2023/04/13 15:00:24 tb Exp $ */ +/* $OpenBSD: ecs_ossl.c,v 1.34 2023/06/25 18:35:28 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project */ @@ -289,15 +289,13 @@ ecdsa_do_sign(const unsigned char *dgst, int dgst_len, BN_CTX *ctx = NULL; const EC_GROUP *group; ECDSA_SIG *ret; - ECDSA_DATA *ecdsa; int attempts = 0; int ok = 0; - ecdsa = ecdsa_check(eckey); group = EC_KEY_get0_group(eckey); priv_key = EC_KEY_get0_private_key(eckey); - if (group == NULL || priv_key == NULL || ecdsa == NULL) { + if (group == NULL || priv_key == NULL) { ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); return NULL; } -- 2.20.1