diff options
author | Przemysław Tomaszewski <p.tomaszewski.mail@gmail.com> | 2018-09-04 08:44:34 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-04 11:00:17 +0200 |
commit | daa3c450d066bbecd76272f7ada7e80f51e2fab5 (patch) | |
tree | 5ac52ccc33ba8769a74bc039c2a1c51e2bdb20e6 /lib/ssh.c | |
parent | 52c13d6328ff56b2d2e8313e88cfdfc78acda365 (diff) | |
download | curl-daa3c450d066bbecd76272f7ada7e80f51e2fab5.tar.gz |
sftp: don't send post-qoute sequence when retrying a connection
Fixes #2939
Closes #2940
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } |