[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-73]

packet read sizes were overestimated by 1 byte
This commit is contained in:
Robey Pointer 2005-10-29 20:57:43 +00:00
parent 66919286b6
commit a355cf43d9
1 changed files with 2 additions and 2 deletions

View File

@ -303,8 +303,8 @@ class Packetizer (object):
if my_mac != mac:
raise SSHException('Mismatched MAC')
padding = ord(packet[0])
payload = packet[1:packet_size - padding + 1]
randpool.add_event(packet[packet_size - padding + 1])
payload = packet[1:packet_size - padding]
randpool.add_event(packet[packet_size - padding])
if self.__dump_packets:
self._log(DEBUG, 'Got payload (%d bytes, %d padding)' % (packet_size, padding))