From: Simon Tatham Date: Fri, 17 May 2002 12:33:20 +0000 (+0000) Subject: ieof-for-nonexistent-channel problem: avoid comparing an unsigned with -1 X-Git-Tag: 0.53~67 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=8cdae4f73b377d5bb4fcf99b34bce63d33b8f4ec;p=PuTTY.git ieof-for-nonexistent-channel problem: avoid comparing an unsigned with -1 [originally from svn r1686] --- diff --git a/ssh.c b/ssh.c index c9b1bcdb..2410d145 100644 --- a/ssh.c +++ b/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);