Skip to content

Commit

Permalink
return WS_CHANNEL_CLOSED from wolfSSH_shutdown instead of WS_SUCCESS
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Jun 14, 2024
1 parent 23a9333 commit 0a0bf3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ int wolfSSH_shutdown(WOLFSSH* ssh)

if (ssh != NULL && ssh->channelList == NULL) {
WLOG(WS_LOG_DEBUG, "channel list was already removed");
ret = WS_SUCCESS;
ret = WS_CHANNEL_CLOSED;
}

WLOG(WS_LOG_DEBUG, "Leaving wolfSSH_shutdown(), ret = %d", ret);
Expand Down

0 comments on commit 0a0bf3f

Please sign in to comment.