diff options
author | Robey Pointer <robey@lag.net> | 2005-10-29 20:57:43 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2005-10-29 20:57:43 +0000 |
commit | a355cf43d99d8a46e22ca6406d30c93f3a3e5def (patch) | |
tree | 74d04caabb8abb008e1cc62653b87ca179615aca | |
parent | 66919286b6a9865d667e28654c42c78d43e876ca (diff) |
[project @ Arch-1:robey@lag.net--2005-master-shake%paramiko--dev--1--patch-73]
packet read sizes were overestimated by 1 byte
-rw-r--r-- | paramiko/packet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paramiko/packet.py b/paramiko/packet.py index cc389ce6..df127b74 100644 --- a/paramiko/packet.py +++ b/paramiko/packet.py @@ -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)) |