From ca50c20055bd6b8698fc221f4ccbcedd367361f6 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Mon, 9 Sep 2024 11:29:51 +0200 Subject: [PATCH] session server BUGFIX always reply to SSH messages Refs cesnet/libnetconf2#494 --- src/session_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/session_server.c b/src/session_server.c index 4f4633e7..38aad599 100644 --- a/src/session_server.c +++ b/src/session_server.c @@ -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 &&