mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
rename discon_msg to peer_discon_msg
Signed-off-by: Ahsen Kamal <itsahsenkamal@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -140,7 +140,7 @@ struct ssh_session_struct {
|
|||||||
|
|
||||||
ssh_string banner; /* that's the issue banner from
|
ssh_string banner; /* that's the issue banner from
|
||||||
the server */
|
the server */
|
||||||
char *discon_msg; /* disconnect message from
|
char *peer_discon_msg; /* disconnect message from
|
||||||
the remote host */
|
the remote host */
|
||||||
char *disconnect_message; /* disconnect message to be set */
|
char *disconnect_message; /* disconnect message to be set */
|
||||||
ssh_buffer in_buffer;
|
ssh_buffer in_buffer;
|
||||||
|
|||||||
@@ -826,11 +826,11 @@ const char *ssh_get_disconnect_message(ssh_session session) {
|
|||||||
if (session->session_state != SSH_SESSION_STATE_DISCONNECTED) {
|
if (session->session_state != SSH_SESSION_STATE_DISCONNECTED) {
|
||||||
ssh_set_error(session, SSH_REQUEST_DENIED,
|
ssh_set_error(session, SSH_REQUEST_DENIED,
|
||||||
"Connection not closed yet");
|
"Connection not closed yet");
|
||||||
} else if(!session->discon_msg) {
|
} else if(!session->peer_discon_msg) {
|
||||||
ssh_set_error(session, SSH_FATAL,
|
ssh_set_error(session, SSH_FATAL,
|
||||||
"Connection correctly closed but no disconnect message");
|
"Connection correctly closed but no disconnect message");
|
||||||
} else {
|
} else {
|
||||||
return session->discon_msg;
|
return session->peer_discon_msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user