diff options
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_ossl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c index 9702cd6dab..02e38109bc 100644 --- a/src/lib/libcrypto/ecdsa/ecs_ossl.c +++ b/src/lib/libcrypto/ecdsa/ecs_ossl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecs_ossl.c,v 1.33 2023/04/13 15:00:24 tb Exp $ */ | 1 | /* $OpenBSD: ecs_ossl.c,v 1.34 2023/06/25 18:35:28 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
4 | */ | 4 | */ |
@@ -289,15 +289,13 @@ ecdsa_do_sign(const unsigned char *dgst, int dgst_len, | |||
289 | BN_CTX *ctx = NULL; | 289 | BN_CTX *ctx = NULL; |
290 | const EC_GROUP *group; | 290 | const EC_GROUP *group; |
291 | ECDSA_SIG *ret; | 291 | ECDSA_SIG *ret; |
292 | ECDSA_DATA *ecdsa; | ||
293 | int attempts = 0; | 292 | int attempts = 0; |
294 | int ok = 0; | 293 | int ok = 0; |
295 | 294 | ||
296 | ecdsa = ecdsa_check(eckey); | ||
297 | group = EC_KEY_get0_group(eckey); | 295 | group = EC_KEY_get0_group(eckey); |
298 | priv_key = EC_KEY_get0_private_key(eckey); | 296 | priv_key = EC_KEY_get0_private_key(eckey); |
299 | 297 | ||
300 | if (group == NULL || priv_key == NULL || ecdsa == NULL) { | 298 | if (group == NULL || priv_key == NULL) { |
301 | ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); | 299 | ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); |
302 | return NULL; | 300 | return NULL; |
303 | } | 301 | } |