Skip to content

Commit 0a0bf3f

Browse files
return WS_CHANNEL_CLOSED from wolfSSH_shutdown instead of WS_SUCCESS
1 parent 23a9333 commit 0a0bf3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ int wolfSSH_shutdown(WOLFSSH* ssh)
10001000

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

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

0 commit comments

Comments
 (0)