diff options
author | tb <> | 2021-04-20 17:06:17 +0000 |
---|---|---|
committer | tb <> | 2021-04-20 17:06:17 +0000 |
commit | 215e6da0cd80325338e1d9f1be083de5f08c3fe6 (patch) | |
tree | bbb2d56ade9cd5dcb045169806a2429936dcc2f4 /src | |
parent | 05c3c8fff8c081d09d5d0feb2306a16cd2b9f6f7 (diff) | |
download | openbsd-215e6da0cd80325338e1d9f1be083de5f08c3fe6.tar.gz openbsd-215e6da0cd80325338e1d9f1be083de5f08c3fe6.tar.bz2 openbsd-215e6da0cd80325338e1d9f1be083de5f08c3fe6.zip |
Compare function pointers against NULL, not 0.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 6 |
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 | |||
492 | EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, | 492 | EC_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 | |||
503 | EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b, | 503 | EC_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 | } |