mirror of
https://github.com/curl/curl.git
synced 2026-07-23 23:57:16 +03: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
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue