diff options
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_sign.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_sign.c | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_sign.c b/src/lib/libcrypto/dsa/dsa_sign.c index efeb35477c..80e002c4a7 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.17 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_sign.c,v 1.18 2014/07/12 16:03:37 miod 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 | * | 
| @@ -91,10 +91,8 @@ void | |||
| 91 | DSA_SIG_free(DSA_SIG *sig) | 91 | DSA_SIG_free(DSA_SIG *sig) | 
| 92 | { | 92 | { | 
| 93 | if (sig) { | 93 | if (sig) { | 
| 94 | if (sig->r) | 94 | BN_free(sig->r); | 
| 95 | BN_free(sig->r); | 95 | BN_free(sig->s); | 
| 96 | if (sig->s) | ||
| 97 | BN_free(sig->s); | ||
| 98 | free(sig); | 96 | free(sig); | 
| 99 | } | 97 | } | 
| 100 | } | 98 | } | 
