mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Fix recently-introduced memory leak in ssh2_msg_unexpected().
[originally from svn r9611]
This commit is contained in:
parent
e148dd97e3
commit
f071feb9a6
1
ssh.c
1
ssh.c
@ -9391,6 +9391,7 @@ static void ssh2_msg_unexpected(Ssh ssh, struct Packet *pktin)
|
||||
ssh2_pkt_type(ssh->pkt_kctx, ssh->pkt_actx,
|
||||
pktin->type));
|
||||
ssh_disconnect(ssh, NULL, buf, SSH2_DISCONNECT_PROTOCOL_ERROR, FALSE);
|
||||
sfree(buf);
|
||||
}
|
||||
|
||||
static void ssh2_msg_something_unimplemented(Ssh ssh, struct Packet *pktin)
|
||||
|
Loading…
Reference in New Issue
Block a user