diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_ossl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c index 83be5fd38b..879027f56d 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.50 2023/07/03 09:59:20 tb Exp $ */ | 1 | /* $OpenBSD: ecs_ossl.c,v 1.51 2023/07/03 10:04:05 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
| 4 | */ | 4 | */ |
| @@ -456,7 +456,7 @@ int | |||
| 456 | ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, | 456 | ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig, |
| 457 | EC_KEY *eckey) | 457 | EC_KEY *eckey) |
| 458 | { | 458 | { |
| 459 | BN_CTX *ctx; | 459 | BN_CTX *ctx = NULL; |
| 460 | BIGNUM *u1, *u2, *m, *x; | 460 | BIGNUM *u1, *u2, *m, *x; |
| 461 | EC_POINT *point = NULL; | 461 | EC_POINT *point = NULL; |
| 462 | const EC_GROUP *group; | 462 | const EC_GROUP *group; |
| @@ -467,12 +467,12 @@ ossl_ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, const ECDSA_SIG * | |||
| 467 | if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL || | 467 | if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL || |
| 468 | (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || sig == NULL) { | 468 | (pub_key = EC_KEY_get0_public_key(eckey)) == NULL || sig == NULL) { |
| 469 | ECDSAerror(ECDSA_R_MISSING_PARAMETERS); | 469 | ECDSAerror(ECDSA_R_MISSING_PARAMETERS); |
| 470 | return -1; | 470 | goto err; |
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | if ((ctx = BN_CTX_new()) == NULL) { | 473 | if ((ctx = BN_CTX_new()) == NULL) { |
| 474 | ECDSAerror(ERR_R_MALLOC_FAILURE); | 474 | ECDSAerror(ERR_R_MALLOC_FAILURE); |
| 475 | return -1; | 475 | goto err; |
| 476 | } | 476 | } |
| 477 | BN_CTX_start(ctx); | 477 | BN_CTX_start(ctx); |
| 478 | u1 = BN_CTX_get(ctx); | 478 | u1 = BN_CTX_get(ctx); |
