mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
ieof-for-nonexistent-channel problem: avoid comparing an unsigned with -1
[originally from svn r1686]
This commit is contained in:
parent
fdbfe9e89f
commit
8cdae4f73b
2
ssh.c
2
ssh.c
@ -2739,7 +2739,7 @@ void sshfwd_close(struct ssh_channel *c)
|
||||
* on it now, and then when the server acks the channel
|
||||
* open, we can close it then.
|
||||
*/
|
||||
if (c->remoteid != -1) {
|
||||
if (((int)c->remoteid) != -1) {
|
||||
if (ssh_version == 1) {
|
||||
send_packet(SSH1_MSG_CHANNEL_CLOSE, PKT_INT, c->remoteid,
|
||||
PKT_END);
|
||||
|
Loading…
Reference in New Issue
Block a user