aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-03-13 03:02:38 +0100
committerDan Fandrich <dan@coneharvesters.com>2014-03-14 23:38:00 +0100
commit596800378d05e62f50043ef01d3b42c0016773a4 (patch)
tree19f9b046ad8580871924df8b29a64970eb3ecb4a /lib
parent8c4d6ceec0fe38ec330b14a60fc346e16118c0e8 (diff)
ssh: removed a redundant close state transition
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index ea81a65dc..5895a10cb 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -734,6 +734,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
result = ssh_check_fingerprint(conn);
if(result == CURLE_OK)
state(conn, SSH_AUTHLIST);
+ /* ssh_check_fingerprint sets state appropriately on error */
break;
case SSH_AUTHLIST:
@@ -1677,7 +1678,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
}
}
- /* If we have restart point then we need to seek to the correct
+ /* If we have a restart point then we need to seek to the correct
position. */
if(data->state.resume_from > 0) {
/* Let's read off the proper amount of bytes from the input. */
@@ -2153,9 +2154,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
}
}
- if(data->set.opt_no_body)
- state(conn, SSH_SFTP_CLOSE);
-
/* Setup the actual download */
if(data->req.size == 0) {
/* no data to transfer */