mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
We failed to ignore SSH_MSG_IGNORE :-)
[originally from svn r219]
This commit is contained in:
parent
8665bc6746
commit
b3efa01293
4
scpssh.c
4
scpssh.c
@ -27,6 +27,7 @@
|
|||||||
#define SSH_CMSG_EOF 19
|
#define SSH_CMSG_EOF 19
|
||||||
#define SSH_SMSG_EXIT_STATUS 20
|
#define SSH_SMSG_EXIT_STATUS 20
|
||||||
#define SSH_CMSG_EXIT_CONFIRMATION 33
|
#define SSH_CMSG_EXIT_CONFIRMATION 33
|
||||||
|
#define SSH_MSG_IGNORE 32
|
||||||
#define SSH_MSG_DEBUG 36
|
#define SSH_MSG_DEBUG 36
|
||||||
|
|
||||||
#define GET_32BIT(cp) \
|
#define GET_32BIT(cp) \
|
||||||
@ -146,6 +147,9 @@ next_packet:
|
|||||||
}
|
}
|
||||||
goto next_packet;
|
goto next_packet;
|
||||||
}
|
}
|
||||||
|
if (pktin.type == SSH_MSG_IGNORE) {
|
||||||
|
goto next_packet;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void s_wrpkt_start(int type, int len) {
|
static void s_wrpkt_start(int type, int len) {
|
||||||
|
2
ssh.c
2
ssh.c
@ -156,6 +156,8 @@ static void ssh_gotdata(unsigned char *data, int datalen) {
|
|||||||
|
|
||||||
if (pktin.type == 36) { /* SSH_MSG_DEBUG */
|
if (pktin.type == 36) { /* SSH_MSG_DEBUG */
|
||||||
/* FIXME: log it */
|
/* FIXME: log it */
|
||||||
|
} else if (pktin.type == 32) { /* SSH_MSG_IGNORE */
|
||||||
|
/* do nothing */;
|
||||||
} else
|
} else
|
||||||
ssh_protocol(NULL, 0, 1);
|
ssh_protocol(NULL, 0, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user