mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #434 from JacobBarthelmeh/sftp-fixes
handle larger ext sizes with SFTP connectpull/438/head
commit
4405eba63d
|
@ -5064,7 +5064,7 @@ static int SFTP_ClientRecvInit(WOLFSSH* ssh) {
|
|||
WFREE(data, ssh->ctx->heap, DYNTYPE_BUFFER);
|
||||
|
||||
/* case where expecting more */
|
||||
if (len < ssh->sftpExtSz) {
|
||||
if ((word32)len < ssh->sftpExtSz) {
|
||||
ssh->sftpExtSz -= len;
|
||||
ssh->error = WS_WANT_READ;
|
||||
return WS_FATAL_ERROR;
|
||||
|
|
|
@ -669,7 +669,7 @@ struct WOLFSSH {
|
|||
byte sftpState;
|
||||
byte realState;
|
||||
byte sftpInt;
|
||||
byte sftpExtSz; /* size of extension buffer (buffer not currently used) */
|
||||
word32 sftpExtSz; /* size of extension buffer (buffer not currently used) */
|
||||
SFTP_OFST sftpOfst[WOLFSSH_MAX_SFTPOFST];
|
||||
char* sftpDefaultPath;
|
||||
#ifdef WOLFSSH_STOREHANDLE
|
||||
|
|
Loading…
Reference in New Issue