diff options
author | David Benjamin <davidben@chromium.org> | 2015-02-11 09:17:18 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-12 02:14:04 +0300 |
commit | 9ab14e00d5f9a1c9847137f1d6f776e18f59048b (patch) | |
tree | 964acd8953118a55c0ef4e7e8a879844fb5a4f6f /crypto/ecdsa/ecdsa.c | |
parent | 3673be7cb6611b373b9b1200999827a9b8df37a1 (diff) |
Add in missing curly braces part 2.
ECC code.
Change-Id: I1a960620edbb30e10dcbab0e8053a1deb9db3262
Reviewed-on: https://boringssl-review.googlesource.com/3402
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/ecdsa/ecdsa.c')
-rw-r--r-- | crypto/ecdsa/ecdsa.c | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/crypto/ecdsa/ecdsa.c b/crypto/ecdsa/ecdsa.c index d389799f..ab6a5a0f 100644 --- a/crypto/ecdsa/ecdsa.c +++ b/crypto/ecdsa/ecdsa.c @@ -355,14 +355,18 @@ err: BN_clear_free(r); } } - if (ctx_in == NULL) + if (ctx_in == NULL) { BN_CTX_free(ctx); - if (order != NULL) + } + if (order != NULL) { BN_free(order); - if (tmp_point != NULL) + } + if (tmp_point != NULL) { EC_POINT_free(tmp_point); - if (X) + } + if (X) { BN_clear_free(X); + } return ret; } @@ -461,16 +465,21 @@ err: ECDSA_SIG_free(ret); ret = NULL; } - if (ctx) + if (ctx) { BN_CTX_free(ctx); - if (m) + } + if (m) { BN_clear_free(m); - if (tmp) + } + if (tmp) { BN_clear_free(tmp); - if (order) + } + if (order) { BN_free(order); - if (kinv) + } + if (kinv) { BN_clear_free(kinv); + } return ret; } |