diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-07-19 12:32:18 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-07-19 12:32:18 +0200 |
commit | d56955cda090dc345fea4f443b7aa77420c0f751 (patch) | |
tree | 803da9d5931f085281f2a826cd7a1b3815342494 | |
parent | 1d73589eb84ffdaae62d5c21db44661dcec6ca0a (diff) | |
download | wireshark-notes-d56955cda090dc345fea4f443b7aa77420c0f751.tar.gz |
tcp-reassembly.py: fix handling of packets with ip.len==0
As present in frame 3 of 25.pcap from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=13523
-rwxr-xr-x | tcp-reassembly.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp-reassembly.py b/tcp-reassembly.py index 2ae570d..21abf9f 100755 --- a/tcp-reassembly.py +++ b/tcp-reassembly.py @@ -80,8 +80,8 @@ for i, (pktno, pkt) in enumerate(mypackets): pkt.load += pkt[Padding].load del pkt[Padding] pkt[IP].len = None - mypackets[i] = Ether(bytes(pkt)) - assert mypackets[i][IP].len != 0 + mypackets[i] = pktno, Ether(bytes(pkt)) + assert mypackets[i][1][IP].len != 0 class SegmentInfo(object): |