From 6668ef2b8049d0469ca815a17e70ecae529ba97c Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 7 Jan 2019 15:33:31 -0700 Subject: [PATCH] advance file state on resume of put --- src/wolfsftp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wolfsftp.c b/src/wolfsftp.c index c749746..303a217 100644 --- a/src/wolfsftp.c +++ b/src/wolfsftp.c @@ -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;