mirror of https://github.com/wolfSSL/wolfssh.git
fix scanbuild warning in SendChannelRequest()
parent
4415d2e52f
commit
37e3250164
|
@ -6879,6 +6879,7 @@ int SendChannelRequest(WOLFSSH* ssh, byte* name, word32 nameSz)
|
|||
ret = WS_INVALID_CHANID;
|
||||
}
|
||||
|
||||
if (ret == WS_SUCCESS) {
|
||||
switch (ssh->connectChannelId) {
|
||||
case WOLFSSH_SESSION_SHELL:
|
||||
cType = cannedShellName;
|
||||
|
@ -6899,6 +6900,7 @@ int SendChannelRequest(WOLFSSH* ssh, byte* name, word32 nameSz)
|
|||
WLOG(WS_LOG_DEBUG, "Unknown channel type");
|
||||
return WS_BAD_ARGUMENT;
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == WS_SUCCESS)
|
||||
ret = PreparePacket(ssh, MSG_ID_SZ + UINT32_SZ + LENGTH_SZ +
|
||||
|
|
Loading…
Reference in New Issue