1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

ssh: removed a redundant close state transition

This commit is contained in:
Dan Fandrich 2014-03-13 03:02:38 +01:00
parent 8c4d6ceec0
commit 596800378d

View File

@ -734,6 +734,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
result = ssh_check_fingerprint(conn); result = ssh_check_fingerprint(conn);
if(result == CURLE_OK) if(result == CURLE_OK)
state(conn, SSH_AUTHLIST); state(conn, SSH_AUTHLIST);
/* ssh_check_fingerprint sets state appropriately on error */
break; break;
case SSH_AUTHLIST: 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. */ position. */
if(data->state.resume_from > 0) { if(data->state.resume_from > 0) {
/* Let's read off the proper amount of bytes from the input. */ /* 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 */ /* Setup the actual download */
if(data->req.size == 0) { if(data->req.size == 0) {
/* no data to transfer */ /* no data to transfer */