mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 21:15:03 -05:00
Fix duplicate packets in CBC mode.
Yesterday's reinstatement of ssh_free_pktout revealed - via valgrind spotting the use-after-free - that the code that prefixed sensible packets with IV-muddling SSH_MSG_IGNOREs was actually sending a second copy of the sensible packet in place of the IGNORE, due to a typo.
This commit is contained in:
parent
d4abff521a
commit
445fa12da7
2
ssh.c
2
ssh.c
@ -1216,7 +1216,7 @@ static void ssh_pkt_write(Ssh ssh, PktOut *pkt)
|
|||||||
*/
|
*/
|
||||||
PktOut *ipkt = ssh_bpp_new_pktout(ssh->bpp, SSH2_MSG_IGNORE);
|
PktOut *ipkt = ssh_bpp_new_pktout(ssh->bpp, SSH2_MSG_IGNORE);
|
||||||
put_stringz(ipkt, "");
|
put_stringz(ipkt, "");
|
||||||
ssh_bpp_format_packet(ssh->bpp, pkt);
|
ssh_bpp_format_packet(ssh->bpp, ipkt);
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_bpp_format_packet(ssh->bpp, pkt);
|
ssh_bpp_format_packet(ssh->bpp, pkt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user