1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-05-28 23:34:49 -05:00

Fix a segfault in agent forwarding code

[originally from svn r633]
This commit is contained in:
Simon Tatham 2000-09-26 11:16:47 +00:00
parent c9557bfc40
commit ab839c6127

1
ssh.c
View File

@ -1671,6 +1671,7 @@ static void ssh1_protocol(unsigned char *in, int inlen, int ispkt) {
c->localid = i;
c->closes = 0;
c->type = SSH1_SMSG_AGENT_OPEN; /* identify channel type */
c->u.a.lensofar = 0;
add234(ssh_channels, c);
send_packet(SSH1_MSG_CHANNEL_OPEN_CONFIRMATION,
PKT_INT, c->remoteid, PKT_INT, c->localid,