diff options
author | tb <> | 2021-04-20 17:17:47 +0000 |
---|---|---|
committer | tb <> | 2021-04-20 17:17:47 +0000 |
commit | a5f77b90eca24a2b906e4a3cc7e7b4ebf1e0ec03 (patch) | |
tree | 841afc9246d358f63dd468eb80c4b030d26cb42a /src/lib | |
parent | 67e97261c2453d56f2a373d1f3023d6538995dd5 (diff) | |
download | openbsd-a5f77b90eca24a2b906e4a3cc7e7b4ebf1e0ec03.tar.gz openbsd-a5f77b90eca24a2b906e4a3cc7e7b4ebf1e0ec03.tar.bz2 openbsd-a5f77b90eca24a2b906e4a3cc7e7b4ebf1e0ec03.zip |
Compare function pointers against NULL, not 0.
ok jsing
Diffstat (limited to 'src/lib')
-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 b4112a1c11..1be688824d 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.36 2021/04/20 17:16:37 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.37 2021/04/20 17:17:47 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 | */ |
@@ -958,7 +958,7 @@ int | |||
958 | EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, | 958 | EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, |
959 | const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx) | 959 | const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx) |
960 | { | 960 | { |
961 | if (group->meth->point_set_affine_coordinates == 0) { | 961 | if (group->meth->point_set_affine_coordinates == NULL) { |
962 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 962 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
963 | return 0; | 963 | return 0; |
964 | } | 964 | } |
@@ -995,7 +995,7 @@ int | |||
995 | EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, | 995 | EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *point, |
996 | BIGNUM *x, BIGNUM *y, BN_CTX *ctx) | 996 | BIGNUM *x, BIGNUM *y, BN_CTX *ctx) |
997 | { | 997 | { |
998 | if (group->meth->point_get_affine_coordinates == 0) { | 998 | if (group->meth->point_get_affine_coordinates == NULL) { |
999 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 999 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
1000 | return 0; | 1000 | return 0; |
1001 | } | 1001 | } |