mirror of https://github.com/wolfSSL/wolfssh.git
Fix a couple scan-build warnings.
parent
5c49c3fd46
commit
2662e43cf1
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue