mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
sftp: don't send post-qoute sequence when retrying a connection
Fixes #2939 Closes #2940
This commit is contained in:
parent
52c13d6328
commit
daa3c450d0
@ -2390,8 +2390,9 @@ static CURLcode sftp_done(struct connectdata *conn, CURLcode status,
|
||||
/* Post quote commands are executed after the SFTP_CLOSE state to avoid
|
||||
errors that could happen due to open file handles during POSTQUOTE
|
||||
operation */
|
||||
if(!status && !premature && conn->data->set.postquote) {
|
||||
sshc->nextstate = SSH_SFTP_POSTQUOTE_INIT;
|
||||
if(!status && !premature && conn->data->set.postquote &&
|
||||
!conn->bits.retry) {
|
||||
sshc->nextstate = SSH_SFTP_POSTQUOTE_INIT;
|
||||
state(conn, SSH_SFTP_CLOSE);
|
||||
}
|
||||
else
|
||||
|
@ -3219,7 +3219,8 @@ static CURLcode sftp_done(struct connectdata *conn, CURLcode status,
|
||||
/* Post quote commands are executed after the SFTP_CLOSE state to avoid
|
||||
errors that could happen due to open file handles during POSTQUOTE
|
||||
operation */
|
||||
if(!status && !premature && conn->data->set.postquote) {
|
||||
if(!status && !premature && conn->data->set.postquote &&
|
||||
!conn->bits.retry) {
|
||||
sshc->nextstate = SSH_SFTP_POSTQUOTE_INIT;
|
||||
state(conn, SSH_SFTP_CLOSE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user