advance file state on resume of put

pull/134/head
Jacob Barthelmeh 2019-01-07 15:33:31 -07:00
parent 9bba844e35
commit 6668ef2b80
1 changed files with 3 additions and 0 deletions

View File

@ -6115,6 +6115,9 @@ int wolfSSH_SFTP_Put(WOLFSSH* ssh, char* from, char* to, byte resume,
state->state = STATE_PUT_CLEANUP;
continue;
}
if (resume) {
WFSEEK(state->fl, state->pOfst, 0);
}
state->rSz = 0;
state->state = STATE_PUT_OPEN_REMOTE;
FALL_THROUGH;