X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fec%2Fecp_smpl.c;h=2ba40f40b282755364bb91e9ad6d11a2ca2f44fd;hb=e5b2ea0ac3b4d752847d197117d58e0f6ad8e08e;hp=df7314a73a2da62f0658c1b75f9dbf6a568be363;hpb=23a1d5e97cd543d2b8e1b01dbf0f619b2e5ce540;p=openssl.git diff --git a/crypto/ec/ecp_smpl.c b/crypto/ec/ecp_smpl.c index df7314a73a..2ba40f40b2 100644 --- a/crypto/ec/ecp_smpl.c +++ b/crypto/ec/ecp_smpl.c @@ -1,4 +1,3 @@ -/* crypto/ec/ecp_smpl.c */ /* * Includes code written by Lenka Fibikova * for the OpenSSL project. Includes code written by Bodo Moeller for the @@ -80,6 +79,7 @@ const EC_METHOD *EC_GFp_simple_method(void) ec_GFp_simple_group_set_curve, ec_GFp_simple_group_get_curve, ec_GFp_simple_group_get_degree, + 0, /* group_order_bits */ ec_GFp_simple_group_check_discriminant, ec_GFp_simple_point_init, ec_GFp_simple_point_finish, @@ -132,7 +132,7 @@ int ec_GFp_simple_group_init(EC_GROUP *group) group->field = BN_new(); group->a = BN_new(); group->b = BN_new(); - if (!group->field || !group->a || !group->b) { + if (group->field == NULL || group->a == NULL || group->b == NULL) { BN_free(group->field); BN_free(group->a); BN_free(group->b); @@ -359,7 +359,7 @@ int ec_GFp_simple_point_init(EC_POINT *point) point->Z = BN_new(); point->Z_is_one = 0; - if (!point->X || !point->Y || !point->Z) { + if (point->X == NULL || point->Y == NULL || point->Z == NULL) { BN_free(point->X); BN_free(point->Y); BN_free(point->Z);