summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/dsa/dsa_sign.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_sign.c b/src/lib/libcrypto/dsa/dsa_sign.c
index f941c32e57..1e0c327e3f 100644
--- a/src/lib/libcrypto/dsa/dsa_sign.c
+++ b/src/lib/libcrypto/dsa/dsa_sign.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsa_sign.c,v 1.24 2023/02/13 09:16:15 tb Exp $ */ 1/* $OpenBSD: dsa_sign.c,v 1.25 2023/02/13 09:17:50 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -72,11 +72,12 @@ DSA_SIG_new(void)
72void 72void
73DSA_SIG_free(DSA_SIG *sig) 73DSA_SIG_free(DSA_SIG *sig)
74{ 74{
75 if (sig != NULL) { 75 if (sig == NULL)
76 BN_free(sig->r); 76 return;
77 BN_free(sig->s); 77
78 free(sig); 78 BN_free(sig->r);
79 } 79 BN_free(sig->s);
80 free(sig);
80} 81}
81 82
82int 83int