summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/ec/ec_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c
index 67db821ec4..c39c4d1a05 100644
--- a/src/lib/libcrypto/ec/ec_lib.c
+++ b/src/lib/libcrypto/ec/ec_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_lib.c,v 1.34 2021/04/20 17:04:13 tb Exp $ */ 1/* $OpenBSD: ec_lib.c,v 1.35 2021/04/20 17:06:17 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -492,7 +492,7 @@ int
492EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, 492EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
493 const BIGNUM *b, BN_CTX *ctx) 493 const BIGNUM *b, BN_CTX *ctx)
494{ 494{
495 if (group->meth->group_set_curve == 0) { 495 if (group->meth->group_set_curve == NULL) {
496 ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); 496 ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
497 return 0; 497 return 0;
498 } 498 }
@@ -503,7 +503,7 @@ int
503EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, 503EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,
504 BN_CTX *ctx) 504 BN_CTX *ctx)
505{ 505{
506 if (group->meth->group_get_curve == 0) { 506 if (group->meth->group_get_curve == NULL) {
507 ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); 507 ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
508 return 0; 508 return 0;
509 } 509 }