# HG changeset patch # User Matt Johnston # Date 1590677749 -28800 # Node ID 56f636f84bf5098fa7aa0c3c46325d06110a8568 # Parent ef57ead0498747fbb9235d1248b786db96e1cdf2 Fix indentation and add braces diff -r ef57ead04987 -r 56f636f84bf5 common-kex.c --- a/common-kex.c Thu May 28 22:52:01 2020 +0800 +++ b/common-kex.c Thu May 28 22:55:49 2020 +0800 @@ -335,8 +335,9 @@ 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 @@ 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,