Skip to content

Commit

Permalink
session server BUGFIX always reply to SSH messages
Browse files Browse the repository at this point in the history
Refs #494
  • Loading branch information
michalvasko committed Sep 9, 2024
1 parent ab7f37f commit ca50c20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/session_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,9 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
case NC_TI_SSH:
ssh_msg = ssh_message_get(session->ti.libssh.session);
if (ssh_msg) {
nc_session_ssh_msg(session, NULL, ssh_msg, NULL);
if (nc_session_ssh_msg(session, NULL, ssh_msg, NULL)) {
ssh_message_reply_default(ssh_msg);
}
if (session->ti.libssh.next) {
for (new = session->ti.libssh.next; new != session; new = new->ti.libssh.next) {
if ((new->status == NC_STATUS_STARTING) && new->ti.libssh.channel &&
Expand Down

0 comments on commit ca50c20

Please sign in to comment.