summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_ossl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c
index 441033e5cd..73aed6eb62 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.57 2023/07/03 10:21:25 tb Exp $ */ 1/* $OpenBSD: ecs_ossl.c,v 1.58 2023/07/03 11:06: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 */
@@ -140,7 +140,11 @@ ossl_ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *in_ctx, BIGNUM **out_kinv,
140 BN_free(*out_r); 140 BN_free(*out_r);
141 *out_r = NULL; 141 *out_r = NULL;
142 142
143 if (eckey == NULL || (group = EC_KEY_get0_group(eckey)) == NULL) { 143 if (eckey == NULL) {
144 ECDSAerror(ERR_R_PASSED_NULL_PARAMETER);
145 goto err;
146 }
147 if ((group = EC_KEY_get0_group(eckey)) == NULL) {
144 ECDSAerror(ERR_R_PASSED_NULL_PARAMETER); 148 ECDSAerror(ERR_R_PASSED_NULL_PARAMETER);
145 goto err; 149 goto err;
146 } 150 }