aboutsummaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
authorTilo Eckert <tilo.eckert@flam.de>2019-02-18 12:47:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-02-21 10:51:28 +0100
commit702a6e7695565a17ecf8c984bdf63ea70ce74a73 (patch)
tree68869d0ae05ac9a551a2a9fa824103fc1299125a /src/client.c
parenteb032e0dec75381183e8a32b4278dd4ff8a9f6b9 (diff)
downloadlibssh-702a6e7695565a17ecf8c984bdf63ea70ce74a73.tar.gz
libssh-702a6e7695565a17ecf8c984bdf63ea70ce74a73.tar.xz
libssh-702a6e7695565a17ecf8c984bdf63ea70ce74a73.zip
client: Add missing break, remove useless return
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client.c b/src/client.c
index a36358fe..a64a6040 100644
--- a/src/client.c
+++ b/src/client.c
@@ -279,10 +279,7 @@ static int dh_handshake(ssh_session session) {
rc = SSH_ERROR;
}
- if (rc == SSH_ERROR) {
- return SSH_ERROR;
- }
-
+ break;
case DH_STATE_INIT_SENT:
/* wait until ssh_packet_dh_reply is called */
break;