We failed to ignore SSH_MSG_IGNORE :-)
[u/mdw/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index 8f7b790..0d53ddb 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -76,7 +76,6 @@ static int s_read (char *buf, int len) {
 static void c_write (char *buf, int len) {
     while (len--) {
        int new_head = (inbuf_head + 1) & INBUF_MASK;
-       int c = (unsigned char) *buf;
        if (new_head != inbuf_reap) {
            inbuf[inbuf_head] = *buf++;
            inbuf_head = new_head;
@@ -101,10 +100,8 @@ static void ssh_size(void);
 
 static void ssh_gotdata(unsigned char *data, int datalen) {
     static long len, biglen, to_read;
-    static unsigned char c, *p;
+    static unsigned char *p;
     static int i, pad;
-    static char padding[8];
-    static unsigned char word[4];
 
     crBegin;
     while (1) {
@@ -159,6 +156,8 @@ static void ssh_gotdata(unsigned char *data, int datalen) {
 
        if (pktin.type == 36) {        /* SSH_MSG_DEBUG */
            /* FIXME: log it */
+       } else if (pktin.type == 32) { /* SSH_MSG_IGNORE */
+           /* do nothing */;
        } else
            ssh_protocol(NULL, 0, 1);
     }