]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
ieof-for-nonexistent-channel problem: avoid comparing an unsigned with -1
authorSimon Tatham <anakin@pobox.com>
Fri, 17 May 2002 12:33:20 +0000 (12:33 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 17 May 2002 12:33:20 +0000 (12:33 +0000)
[originally from svn r1686]

ssh.c

diff --git a/ssh.c b/ssh.c
index c9b1bcdb938a9c4f9c9d015bd4997904fd13cfeb..2410d14558af9c17ff979fec03b0e786de924d9f 100644 (file)
--- 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);