Fix a couple scan-build warnings.

pull/134/head
John Safranek 2019-01-02 15:11:05 -08:00
parent 5c49c3fd46
commit 2662e43cf1
2 changed files with 2 additions and 2 deletions

View File

@ -4770,7 +4770,7 @@ int DoReceive(WOLFSSH* ssh)
&ssh->curSz);
if (ssh->curSz >
MAX_PACKET_SZ - (word32)peerMacSz - LENGTH_SZ) {
ret = WS_OVERFLOW_E;
ssh->error = WS_OVERFLOW_E;
return WS_FATAL_ERROR;
}
ssh->processReplyState = PROCESS_PACKET_FINISH;

View File

@ -3494,7 +3494,7 @@ static WS_SFTPNAME* wolfSSH_SFTP_DoName(WOLFSSH* ssh)
WS_SFTPNAME* n = NULL;
word32 maxSz;
word32 count;
word32 reqId;
word32 reqId = 0;
byte type = WOLFSSH_FTP_STATUS;
int ret;