mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 02:02:26 +00:00
ssh_pkt_getstring wants a boring int rather than an unsigned int. Let's
give it one. [originally from svn r5129]
This commit is contained in:
parent
d2b22cf1f6
commit
7e19075103
4
ssh.c
4
ssh.c
@ -4279,7 +4279,7 @@ static void ssh1_msg_channel_data(Ssh ssh, struct Packet *pktin)
|
|||||||
/* Data sent down one of our channels. */
|
/* Data sent down one of our channels. */
|
||||||
int i = ssh_pkt_getuint32(pktin);
|
int i = ssh_pkt_getuint32(pktin);
|
||||||
char *p;
|
char *p;
|
||||||
unsigned int len;
|
int len;
|
||||||
struct ssh_channel *c;
|
struct ssh_channel *c;
|
||||||
|
|
||||||
ssh_pkt_getstring(pktin, &p, &len);
|
ssh_pkt_getstring(pktin, &p, &len);
|
||||||
@ -5480,7 +5480,7 @@ static void ssh2_msg_channel_window_adjust(Ssh ssh, struct Packet *pktin)
|
|||||||
static void ssh2_msg_channel_data(Ssh ssh, struct Packet *pktin)
|
static void ssh2_msg_channel_data(Ssh ssh, struct Packet *pktin)
|
||||||
{
|
{
|
||||||
char *data;
|
char *data;
|
||||||
unsigned int length;
|
int length;
|
||||||
unsigned i = ssh_pkt_getuint32(pktin);
|
unsigned i = ssh_pkt_getuint32(pktin);
|
||||||
struct ssh_channel *c;
|
struct ssh_channel *c;
|
||||||
c = find234(ssh->channels, &i, ssh_channelfind);
|
c = find234(ssh->channels, &i, ssh_channelfind);
|
||||||
|
Loading…
Reference in New Issue
Block a user