ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Re: Improved iSCSI dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Mark Burton <markb@xxxxxxxxxx>
Date: Sun, 21 Oct 2001 18:03:03 +0100 (BST)
Embarrassingly, my previous post contained a small, but significant
bug. Please apply the enclosed patch to packet-iscsi.c. Silly me.

Mark

--- packet-iscsi.c-     Sun Oct 21 11:24:06 2001
+++ packet-iscsi.c      Sun Oct 21 17:51:38 2001
@@ -1212,6 +1212,8 @@
            }
            
            dissect_iscsi_pdu(tvb, pinfo, tree, offset, opcode, opcode_str, data_segment_len);
+           if(pduLen > available_bytes)
+               pduLen = available_bytes;
            offset += pduLen;
            available_bytes -= pduLen;
            ++iSCSIPdusDissected;