Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-02-11 09:16:26 +0300
committerAdam Langley <agl@google.com>2015-02-11 22:31:01 +0300
commitc9a202fee3632be4cb133996993949bdec548035 (patch)
tree762e03c99e20e0ae1f2045117343766fd5690ab8 /crypto/bn/ctx.c
parentefec193d27e81cc4d25d0b04c89d4d0c155fcccf (diff)
Add in missing curly braces part 1.
Everything before crypto/ec. Change-Id: Icbfab8e4ffe5cc56bf465eb57d3fdad3959a085c Reviewed-on: https://boringssl-review.googlesource.com/3401 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/bn/ctx.c')
-rw-r--r--crypto/bn/ctx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bn/ctx.c b/crypto/bn/ctx.c
index e54007b4..e3a5c928 100644
--- a/crypto/bn/ctx.c
+++ b/crypto/bn/ctx.c
@@ -205,14 +205,14 @@ static void BN_STACK_init(BN_STACK *st) {
}
static void BN_STACK_finish(BN_STACK *st) {
- if (st->size)
+ if (st->size) {
OPENSSL_free(st->indexes);
+ }
}
static int BN_STACK_push(BN_STACK *st, unsigned int idx) {
- if (st->depth == st->size)
- /* Need to expand */
- {
+ if (st->depth == st->size) {
+ /* Need to expand */
unsigned int newsize =
(st->size ? (st->size * 3 / 2) : BN_CTX_START_FRAMES);
unsigned int *newitems = OPENSSL_malloc(newsize * sizeof(unsigned int));