summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_print.c
diff options
context:
space:
mode:
authorjsing <>2023-03-07 09:27:10 +0000
committerjsing <>2023-03-07 09:27:10 +0000
commitc83e0ddc66b0c990eac3283a437e4e70eabd868d (patch)
treed6ca9b239f49033751a7fb0f0185d1ad060801cf /src/lib/libcrypto/ec/ec_print.c
parente3934d6456ddf771c623fd07240dfb4c4d7a062c (diff)
downloadopenbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.tar.gz
openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.tar.bz2
openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.zip
Call BN_free() instead of BN_clear_free().
BN_clear_free() is a wrapper that calls BN_free() - call BN_free() directly instead. ok tb@
Diffstat (limited to 'src/lib/libcrypto/ec/ec_print.c')
-rw-r--r--src/lib/libcrypto/ec/ec_print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_print.c b/src/lib/libcrypto/ec/ec_print.c
index 1b85e82436..faa212f502 100644
--- a/src/lib/libcrypto/ec/ec_print.c
+++ b/src/lib/libcrypto/ec/ec_print.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_print.c,v 1.9 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: ec_print.c,v 1.10 2023/03/07 09:27:10 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -172,7 +172,7 @@ EC_POINT_hex2point(const EC_GROUP *group, const char *buf,
172 172
173 ret = EC_POINT_bn2point(group, tmp_bn, point, ctx); 173 ret = EC_POINT_bn2point(group, tmp_bn, point, ctx);
174 174
175 BN_clear_free(tmp_bn); 175 BN_free(tmp_bn);
176 176
177 return ret; 177 return ret;
178} 178}