diff common-kex.c @ 1700:56f636f84bf5

Fix indentation and add braces
author Matt Johnston <matt@ucc.asn.au>
date Thu, 28 May 2020 22:55:49 +0800
parents 1051e4eea25a
children 8f93f37c01de
line wrap: on
line diff
--- 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,