mirror of https://github.com/wolfSSL/wolfssh.git
static analysis and cast of argument
parent
fbbd3aa552
commit
cfe2aafbf0
|
@ -1127,7 +1127,7 @@ THREAD_RETURN WOLFSSH_THREAD sftpclient_test(void* args)
|
||||||
n = NULL;
|
n = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = doCmds(args);
|
ret = doCmds((func_args*)args);
|
||||||
XFREE(workingDir, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
XFREE(workingDir, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
if (ret == WS_SUCCESS) {
|
if (ret == WS_SUCCESS) {
|
||||||
if (wolfSSH_shutdown(ssh) != WS_SUCCESS) {
|
if (wolfSSH_shutdown(ssh) != WS_SUCCESS) {
|
||||||
|
|
|
@ -2178,6 +2178,11 @@ int wsScpSendCallback(WOLFSSH* ssh, int state, const char* peerRequest,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = FindNextDirEntry(sendCtx);
|
ret = FindNextDirEntry(sendCtx);
|
||||||
|
|
||||||
|
/* help out static analysis tool */
|
||||||
|
if (ret != WS_BAD_ARGUMENT && sendCtx == NULL)
|
||||||
|
ret = WS_BAD_ARGUMENT;
|
||||||
|
|
||||||
if (ret == WS_SUCCESS || ret == WS_NEXT_ERROR) {
|
if (ret == WS_SUCCESS || ret == WS_NEXT_ERROR) {
|
||||||
|
|
||||||
#ifdef WOLFSSL_NUCLEUS
|
#ifdef WOLFSSL_NUCLEUS
|
||||||
|
|
Loading…
Reference in New Issue