1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-08 03:42:12 +03:00

Do not send reply if not requested

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by: Eshan Kelkar <eshankelkar@galorithm.com>
This commit is contained in:
Jakub Jelen
2024-07-16 10:01:19 +02:00
committed by Sahana Prasad
parent 60ec21a5bf
commit 754fb9afc4

View File

@@ -1642,7 +1642,9 @@ SSH_PACKET_CALLBACK(ssh_packet_global_request){
SSH_LOG(SSH_LOG_PROTOCOL, "Received no-more-sessions@openssh.com %d", want_reply); SSH_LOG(SSH_LOG_PROTOCOL, "Received no-more-sessions@openssh.com %d", want_reply);
ssh_message_global_request_reply_success(msg, 0); if (want_reply) {
ssh_message_global_request_reply_success(msg, 0);
}
session->flags |= SSH_SESSION_FLAG_NO_MORE_SESSIONS; session->flags |= SSH_SESSION_FLAG_NO_MORE_SESSIONS;
} else { } else {