diff options
author | miod <> | 2014-07-12 16:03:37 +0000 |
---|---|---|
committer | miod <> | 2014-07-12 16:03:37 +0000 |
commit | 1ae7466a2fdd60df6484d8d132d70a044fd58c92 (patch) | |
tree | b756e0522f06b8c8ef257885370d0ada8f818fa8 /src/lib/libcrypto/dsa/dsa_sign.c | |
parent | 3c4c98fca81949fb441815860d40ad66626df65d (diff) | |
download | openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.gz openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.tar.bz2 openbsd-1ae7466a2fdd60df6484d8d132d70a044fd58c92.zip |
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
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 | } |