Skip to content

Commit

Permalink
fix build with disable term
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Nov 6, 2023
1 parent 287b543 commit f5fd96d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,11 @@ int wolfSSH_shutdown(WOLFSSH* ssh)
if (ret == WS_SUCCESS ||
(ret != WS_BAD_ARGUMENT && ssh->error == WS_WANT_WRITE)) {
ret = SendChannelExit(ssh, ssh->channelList->peerChannel,
#if defined(WOLFSSH_TERM) || defined(WOLFSSH_SHELL)
ssh->exitStatus);
#else
0);
#endif
}

/* continue on success and in case where queing up send packets */
Expand Down

0 comments on commit f5fd96d

Please sign in to comment.