diff options
author | tb <> | 2021-04-20 17:29:21 +0000 |
---|---|---|
committer | tb <> | 2021-04-20 17:29:21 +0000 |
commit | 5526be4d8fa037d5beac3416101f07402befa9a3 (patch) | |
tree | 8b959b4a26ae3002a7d2b805ab4786f8ccfdcfaa | |
parent | d4cd97c94eead199a5ddfade40166ffd21d00609 (diff) | |
download | openbsd-5526be4d8fa037d5beac3416101f07402befa9a3.tar.gz openbsd-5526be4d8fa037d5beac3416101f07402befa9a3.tar.bz2 openbsd-5526be4d8fa037d5beac3416101f07402befa9a3.zip |
Compare function pointers against NULL, not 0.
ok jsing
-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 a5cf84b78c..e763e6b70c 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.38 2021/04/20 17:28:18 tb Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.39 2021/04/20 17:29:21 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 | */ |
@@ -926,7 +926,7 @@ int | |||
926 | EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *point, | 926 | EC_POINT_set_Jprojective_coordinates(const EC_GROUP *group, EC_POINT *point, |
927 | const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx) | 927 | const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *ctx) |
928 | { | 928 | { |
929 | if (group->meth->point_set_Jprojective_coordinates == 0) { | 929 | if (group->meth->point_set_Jprojective_coordinates == NULL) { |
930 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 930 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
931 | return 0; | 931 | return 0; |
932 | } | 932 | } |
@@ -942,7 +942,7 @@ int | |||
942 | EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group, | 942 | EC_POINT_get_Jprojective_coordinates(const EC_GROUP *group, |
943 | const EC_POINT *point, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx) | 943 | const EC_POINT *point, BIGNUM *x, BIGNUM *y, BIGNUM *z, BN_CTX *ctx) |
944 | { | 944 | { |
945 | if (group->meth->point_get_Jprojective_coordinates == 0) { | 945 | if (group->meth->point_get_Jprojective_coordinates == NULL) { |
946 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | 946 | ECerror(ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); |
947 | return 0; | 947 | return 0; |
948 | } | 948 | } |