diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_mult.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_mult.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_mult.c b/src/lib/libcrypto/ec/ec_mult.c index f05df5332e..19f21675fb 100644 --- a/src/lib/libcrypto/ec/ec_mult.c +++ b/src/lib/libcrypto/ec/ec_mult.c | |||
@@ -169,11 +169,13 @@ static void ec_pre_comp_clear_free(void *pre_) | |||
169 | EC_POINT **p; | 169 | EC_POINT **p; |
170 | 170 | ||
171 | for (p = pre->points; *p != NULL; p++) | 171 | for (p = pre->points; *p != NULL; p++) |
172 | { | ||
172 | EC_POINT_clear_free(*p); | 173 | EC_POINT_clear_free(*p); |
173 | OPENSSL_cleanse(pre->points, sizeof pre->points); | 174 | OPENSSL_cleanse(p, sizeof *p); |
175 | } | ||
174 | OPENSSL_free(pre->points); | 176 | OPENSSL_free(pre->points); |
175 | } | 177 | } |
176 | OPENSSL_cleanse(pre, sizeof pre); | 178 | OPENSSL_cleanse(pre, sizeof *pre); |
177 | OPENSSL_free(pre); | 179 | OPENSSL_free(pre); |
178 | } | 180 | } |
179 | 181 | ||