Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Move call to ssh2_channnel_check_close().
Browse files Browse the repository at this point in the history
From ssh2_channel_got_eof() to ssh2_msg_channel_eof().  This removes
the only SSH-2 specicifity from the former.  ssh2_channel_got_eof()
can also be called from ssh2_msg_channel_close(), but that calls
ssh2_channel_check_close() already.
  • Loading branch information
bjh21 committed May 25, 2016
1 parent 12cebbf commit b7cc086
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -8267,8 +8267,6 @@ static void ssh2_channel_got_eof(struct ssh_channel *c)
}
ssh->sent_console_eof = TRUE;
}

ssh2_channel_check_close(c);
}

static void ssh2_msg_channel_eof(Ssh ssh, struct Packet *pktin)
Expand All @@ -8279,6 +8277,7 @@ static void ssh2_msg_channel_eof(Ssh ssh, struct Packet *pktin)
if (!c)
return;
ssh2_channel_got_eof(c);
ssh2_channel_check_close(c);
}

static void ssh2_msg_channel_close(Ssh ssh, struct Packet *pktin)
Expand Down

0 comments on commit b7cc086

Please sign in to comment.