diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_lib.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 5af84376c6..dd7da0fcf9 100644 --- a/src/lib/libcrypto/ec/ec_lib.c +++ b/src/lib/libcrypto/ec/ec_lib.c | |||
@@ -79,7 +79,7 @@ EC_GROUP *EC_GROUP_new(const EC_METHOD *meth) | |||
79 | 79 | ||
80 | if (meth == NULL) | 80 | if (meth == NULL) |
81 | { | 81 | { |
82 | ECerr(EC_F_EC_GROUP_NEW, ERR_R_PASSED_NULL_PARAMETER); | 82 | ECerr(EC_F_EC_GROUP_NEW, EC_R_SLOT_FULL); |
83 | return NULL; | 83 | return NULL; |
84 | } | 84 | } |
85 | if (meth->group_init == 0) | 85 | if (meth->group_init == 0) |
@@ -740,7 +740,7 @@ void EC_POINT_clear_free(EC_POINT *point) | |||
740 | 740 | ||
741 | if (point->meth->point_clear_finish != 0) | 741 | if (point->meth->point_clear_finish != 0) |
742 | point->meth->point_clear_finish(point); | 742 | point->meth->point_clear_finish(point); |
743 | else if (point->meth != NULL && point->meth->point_finish != 0) | 743 | else if (point->meth->point_finish != 0) |
744 | point->meth->point_finish(point); | 744 | point->meth->point_finish(point); |
745 | OPENSSL_cleanse(point, sizeof *point); | 745 | OPENSSL_cleanse(point, sizeof *point); |
746 | OPENSSL_free(point); | 746 | OPENSSL_free(point); |