diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-28 22:55:49 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-28 22:55:49 +0800 |
commit | a015cc7594bd746ba4a8423cde663c58c51bdb09 (patch) | |
tree | 22c9458db072aced2033ba189f88ee2cb0ef923d /common-kex.c | |
parent | dc12be0cfe302cb43c89d6e393988769b9587dff (diff) |
Fix indentation and add braces
Diffstat (limited to 'common-kex.c')
-rw-r--r-- | common-kex.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common-kex.c b/common-kex.c index a533f5c..3dca3a5 100644 --- a/common-kex.c +++ b/common-kex.c @@ -335,8 +335,9 @@ static void gen_new_keys() { int recv_cipher = -1; if (ses.newkeys->recv.algo_crypt->cipherdesc->name != NULL) { recv_cipher = find_cipher(ses.newkeys->recv.algo_crypt->cipherdesc->name); - if (recv_cipher < 0) - dropbear_exit("Crypto error"); + if (recv_cipher < 0) { + dropbear_exit("Crypto error"); + } } if (ses.newkeys->recv.crypt_mode->start(recv_cipher, recv_IV, recv_key, @@ -350,8 +351,9 @@ static void gen_new_keys() { int trans_cipher = -1; if (ses.newkeys->trans.algo_crypt->cipherdesc->name != NULL) { trans_cipher = find_cipher(ses.newkeys->trans.algo_crypt->cipherdesc->name); - if (trans_cipher < 0) - dropbear_exit("Crypto error"); + if (trans_cipher < 0) { + dropbear_exit("Crypto error"); + } } if (ses.newkeys->trans.crypt_mode->start(trans_cipher, trans_IV, trans_key, |