mirror of https://github.com/wolfSSL/wolfssh.git
fix for scan-build warning
parent
9b7700cd6b
commit
aa3fcc71a4
|
@ -878,7 +878,7 @@ int wolfSSH_shutdown(WOLFSSH* ssh)
|
|||
if (ret == WS_SUCCESS)
|
||||
ret = SendDisconnect(ssh, WOLFSSH_DISCONNECT_BY_APPLICATION);
|
||||
|
||||
if (ssh->channelList == NULL) {
|
||||
if (ssh != NULL && ssh->channelList == NULL) {
|
||||
WLOG(WS_LOG_DEBUG, "channel list was already removed");
|
||||
ret = WS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue