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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user