summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_asn1.c')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_asn1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_asn1.c b/src/lib/libcrypto/ecdsa/ecs_asn1.c
index 9e286138e8..9db114a2d1 100644
--- a/src/lib/libcrypto/ecdsa/ecs_asn1.c
+++ b/src/lib/libcrypto/ecdsa/ecs_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecs_asn1.c,v 1.12 2022/11/26 16:08:52 tb Exp $ */ 1/* $OpenBSD: ecs_asn1.c,v 1.13 2023/03/07 09:27:10 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2000-2002 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -141,8 +141,8 @@ ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s)
141 if (r == NULL || s == NULL) 141 if (r == NULL || s == NULL)
142 return 0; 142 return 0;
143 143
144 BN_clear_free(sig->r); 144 BN_free(sig->r);
145 BN_clear_free(sig->s); 145 BN_free(sig->s);
146 sig->r = r; 146 sig->r = r;
147 sig->s = s; 147 sig->s = s;
148 return 1; 148 return 1;