[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:
parent
66919286b6
commit
a355cf43d9
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue