diff options
author | David Benjamin <davidben@chromium.org> | 2015-02-11 09:16:26 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-11 22:31:01 +0300 |
commit | c9a202fee3632be4cb133996993949bdec548035 (patch) | |
tree | 762e03c99e20e0ae1f2045117343766fd5690ab8 /crypto/bio | |
parent | efec193d27e81cc4d25d0b04c89d4d0c155fcccf (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/bio')
-rw-r--r-- | crypto/bio/buffer.c | 3 | ||||
-rw-r--r-- | crypto/bio/connect.c | 5 | ||||
-rw-r--r-- | crypto/bio/socket.c | 6 |
3 files changed, 9 insertions, 5 deletions
diff --git a/crypto/bio/buffer.c b/crypto/bio/buffer.c index 5e423a12..5fbce7ed 100644 --- a/crypto/bio/buffer.c +++ b/crypto/bio/buffer.c @@ -315,8 +315,9 @@ static long buffer_ctrl(BIO *b, int cmd, long num, void *ptr) { case BIO_CTRL_WPENDING: ret = (long)ctx->obuf_len; if (ret == 0) { - if (b->next_bio == NULL) + if (b->next_bio == NULL) { return 0; + } ret = BIO_ctrl(b->next_bio, cmd, num, ptr); } break; diff --git a/crypto/bio/connect.c b/crypto/bio/connect.c index 66ac3a7b..16cfd604 100644 --- a/crypto/bio/connect.c +++ b/crypto/bio/connect.c @@ -397,10 +397,11 @@ static long conn_ctrl(BIO *bio, int cmd, long num, void *ptr) { break; case BIO_C_DO_STATE_MACHINE: /* use this one to start the connection */ - if (data->state != BIO_CONN_S_OK) + if (data->state != BIO_CONN_S_OK) { ret = (long)conn_state(bio, data); - else + } else { ret = 1; + } break; case BIO_C_GET_CONNECT: /* TODO(fork): can this be removed? (Or maybe this whole file). */ diff --git a/crypto/bio/socket.c b/crypto/bio/socket.c index 590447ff..3f3884ce 100644 --- a/crypto/bio/socket.c +++ b/crypto/bio/socket.c @@ -150,11 +150,13 @@ static long sock_ctrl(BIO *b, int cmd, long num, void *ptr) { case BIO_C_GET_FD: if (b->init) { ip = (int *)ptr; - if (ip != NULL) + if (ip != NULL) { *ip = b->num; + } ret = b->num; - } else + } else { ret = -1; + } break; case BIO_CTRL_GET_CLOSE: ret = b->shutdown; |