assign peer_discon_msg

Signed-off-by: Ahsen Kamal <itsahsenkamal@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 4a7a7e3186)
This commit is contained in:
Ahsen Kamal
2023-02-21 04:08:40 +05:30
committed by Jakub Jelen
parent 0d86688da2
commit 662fe00c15

View File

@@ -63,6 +63,9 @@ SSH_PACKET_CALLBACK(ssh_packet_disconnect_callback){
error = ssh_string_to_char(error_s);
SSH_STRING_FREE(error_s);
}
session->peer_discon_msg = strdup(error);
SSH_LOG(SSH_LOG_PACKET, "Received SSH_MSG_DISCONNECT %d:%s",
code, error != NULL ? error : "no error");
ssh_set_error(session, SSH_FATAL,