diff options
| author | miod <> | 2014-07-12 16:03:37 +0000 |
|---|---|---|
| committer | miod <> | 2014-07-12 16:03:37 +0000 |
| commit | 068bf464df6ef084067943863d776f59762bfaf0 (patch) | |
| tree | b756e0522f06b8c8ef257885370d0ada8f818fa8 /src/lib/libcrypto/dsa/dsa_key.c | |
| parent | 06f6ab0895a91e149f325795e99f199ad06b64c4 (diff) | |
| download | openbsd-068bf464df6ef084067943863d776f59762bfaf0.tar.gz openbsd-068bf464df6ef084067943863d776f59762bfaf0.tar.bz2 openbsd-068bf464df6ef084067943863d776f59762bfaf0.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_key.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_key.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_key.c b/src/lib/libcrypto/dsa/dsa_key.c index 4573ecbcce..4dc28dbb90 100644 --- a/src/lib/libcrypto/dsa/dsa_key.c +++ b/src/lib/libcrypto/dsa/dsa_key.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_key.c,v 1.18 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_key.c,v 1.19 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 | * |
| @@ -128,8 +128,7 @@ err: | |||
| 128 | BN_free(pub_key); | 128 | BN_free(pub_key); |
| 129 | if (priv_key != NULL && dsa->priv_key == NULL) | 129 | if (priv_key != NULL && dsa->priv_key == NULL) |
| 130 | BN_free(priv_key); | 130 | BN_free(priv_key); |
| 131 | if (ctx != NULL) | 131 | BN_CTX_free(ctx); |
| 132 | BN_CTX_free(ctx); | ||
| 133 | return ok; | 132 | return ok; |
| 134 | } | 133 | } |
| 135 | #endif | 134 | #endif |
