diff options
author | jsing <> | 2023-03-08 06:47:30 +0000 |
---|---|---|
committer | jsing <> | 2023-03-08 06:47:30 +0000 |
commit | b1fe5617fffbecf9cdee2b735a68f6ef9598048b (patch) | |
tree | d424302d9cbdac20d1e9952113ad0f8a0b7e4613 /src/lib | |
parent | 3dbc52233811e638e65b556636245ba80afdc33d (diff) | |
download | openbsd-b1fe5617fffbecf9cdee2b735a68f6ef9598048b.tar.gz openbsd-b1fe5617fffbecf9cdee2b735a68f6ef9598048b.tar.bz2 openbsd-b1fe5617fffbecf9cdee2b735a68f6ef9598048b.zip |
Fix previous.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ec/ec_lib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_lib.c b/src/lib/libcrypto/ec/ec_lib.c index 8eb0253a1f..2d14f9c9c5 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.50 2023/03/08 05:45:31 jsing Exp $ */ | 1 | /* $OpenBSD: ec_lib.c,v 1.51 2023/03/08 06:47:30 jsing 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 | */ |
@@ -117,7 +117,7 @@ EC_GROUP_new(const EC_METHOD *meth) | |||
117 | void | 117 | void |
118 | EC_GROUP_free(EC_GROUP *group) | 118 | EC_GROUP_free(EC_GROUP *group) |
119 | { | 119 | { |
120 | if (group != NULL) | 120 | if (group == NULL) |
121 | return; | 121 | return; |
122 | 122 | ||
123 | if (group->meth->group_finish != NULL) | 123 | if (group->meth->group_finish != NULL) |
@@ -136,7 +136,7 @@ EC_GROUP_free(EC_GROUP *group) | |||
136 | void | 136 | void |
137 | EC_GROUP_clear_free(EC_GROUP *group) | 137 | EC_GROUP_clear_free(EC_GROUP *group) |
138 | { | 138 | { |
139 | return EC_GROUP_free(group); | 139 | EC_GROUP_free(group); |
140 | } | 140 | } |
141 | 141 | ||
142 | int | 142 | int |
@@ -836,7 +836,7 @@ EC_POINT_new(const EC_GROUP *group) | |||
836 | void | 836 | void |
837 | EC_POINT_free(EC_POINT *point) | 837 | EC_POINT_free(EC_POINT *point) |
838 | { | 838 | { |
839 | if (point != NULL) | 839 | if (point == NULL) |
840 | return; | 840 | return; |
841 | 841 | ||
842 | if (point->meth->point_finish != NULL) | 842 | if (point->meth->point_finish != NULL) |
@@ -848,7 +848,7 @@ EC_POINT_free(EC_POINT *point) | |||
848 | void | 848 | void |
849 | EC_POINT_clear_free(EC_POINT *point) | 849 | EC_POINT_clear_free(EC_POINT *point) |
850 | { | 850 | { |
851 | return EC_POINT_free(point); | 851 | EC_POINT_free(point); |
852 | } | 852 | } |
853 | 853 | ||
854 | int | 854 | int |