mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
Reformat channel_rcv_eof().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@679 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -403,21 +403,25 @@ static void channel_rcv_data(SSH_SESSION *session,int is_stderr) {
|
|||||||
leave_function();
|
leave_function();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void channel_rcv_eof(SSH_SESSION *session){
|
static void channel_rcv_eof(SSH_SESSION *session) {
|
||||||
CHANNEL *channel;
|
CHANNEL *channel;
|
||||||
|
|
||||||
enter_function();
|
enter_function();
|
||||||
channel=channel_from_msg(session);
|
|
||||||
if(!channel){
|
channel = channel_from_msg(session);
|
||||||
ssh_log(session, SSH_LOG_FUNCTIONS, "%s", ssh_get_error(session));
|
if (channel == NULL) {
|
||||||
|
ssh_log(session, SSH_LOG_FUNCTIONS, ssh_get_error(session));
|
||||||
leave_function();
|
leave_function();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_log(session, SSH_LOG_PACKET,
|
ssh_log(session, SSH_LOG_PACKET,
|
||||||
"Received eof on channel (%d:%d)",
|
"Received eof on channel (%d:%d)",
|
||||||
channel->local_channel,
|
channel->local_channel,
|
||||||
channel->remote_channel);
|
channel->remote_channel);
|
||||||
// channel->remote_window=0;
|
/* channel->remote_window = 0; */
|
||||||
channel->remote_eof=1;
|
channel->remote_eof = 1;
|
||||||
|
|
||||||
leave_function();
|
leave_function();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user