1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-24 19:37:48 +03:00

assign peer_discon_msg

Signed-off-by: Ahsen Kamal <itsahsenkamal@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Ahsen Kamal
2023-02-21 04:08:40 +05:30
committed by Jakub Jelen
parent e2b89dec9d
commit 4a7a7e3186

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 %" PRIu32 ":%s",
code, error != NULL ? error : "no error");
ssh_set_error(session, SSH_FATAL,