diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_ossl.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c index 73aed6eb62..1dce05c35f 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.58 2023/07/03 11:06:28 tb Exp $ */ | 1 | /* $OpenBSD: ecs_ossl.c,v 1.59 2023/07/03 11:10: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 | */ |
| @@ -278,10 +278,11 @@ ossl_ecdsa_sign_sig(const unsigned char *dgst, int dgst_len, | |||
| 278 | int attempts = 0; | 278 | int attempts = 0; |
| 279 | ECDSA_SIG *sig = NULL; | 279 | ECDSA_SIG *sig = NULL; |
| 280 | 280 | ||
| 281 | group = EC_KEY_get0_group(eckey); | 281 | if ((group = EC_KEY_get0_group(eckey)) == NULL) { |
| 282 | priv_key = EC_KEY_get0_private_key(eckey); | 282 | ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); |
| 283 | 283 | goto err; | |
| 284 | if (group == NULL || priv_key == NULL) { | 284 | } |
| 285 | if ((priv_key = EC_KEY_get0_private_key(eckey)) == NULL) { | ||
| 285 | ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); | 286 | ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); |
| 286 | goto err; | 287 | goto err; |
| 287 | } | 288 | } |
