Merge pull request #74 from cconlon/scanbuild

fix scanbuild warning in SendChannelRequest()
pull/76/head
JacobBarthelmeh 2018-06-12 13:18:33 -06:00 committed by GitHub
commit d3acd4839b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 16 deletions

View File

@ -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 +