fix for scan-build warning

pull/241/head
Jacob Barthelmeh 2020-02-19 10:17:12 -07:00
parent 9b7700cd6b
commit aa3fcc71a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}