Skip to content

Commit ca50c20

Browse files
committed
session server BUGFIX always reply to SSH messages
Refs #494
1 parent ab7f37f commit ca50c20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/session_server.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,9 @@ nc_ps_poll_session_io(struct nc_session *session, int io_timeout, time_t now_mon
18151815
case NC_TI_SSH:
18161816
ssh_msg = ssh_message_get(session->ti.libssh.session);
18171817
if (ssh_msg) {
1818-
nc_session_ssh_msg(session, NULL, ssh_msg, NULL);
1818+
if (nc_session_ssh_msg(session, NULL, ssh_msg, NULL)) {
1819+
ssh_message_reply_default(ssh_msg);
1820+
}
18191821
if (session->ti.libssh.next) {
18201822
for (new = session->ti.libssh.next; new != session; new = new->ti.libssh.next) {
18211823
if ((new->status == NC_STATUS_STARTING) && new->ti.libssh.channel &&

0 commit comments

Comments
 (0)