aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iscsi.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-12-08 01:15:55 +0000
committerMichael Mann <mmann78@netscape.net>2013-12-08 01:15:55 +0000
commit5c4a1252022bb5aa77a00797053061228bfa396a (patch)
tree427a9becadddb21d647e8b5c949b85e2b5a186c1 /epan/dissectors/packet-iscsi.c
parent562348fbb823bd8ea67e62e45f83db86904b01cf (diff)
Correctly update the data length of the SCSI payload within ISCSI. Bug 9521 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9521)
From Yaniv Kaul svn path=/trunk/; revision=53838
Diffstat (limited to 'epan/dissectors/packet-iscsi.c')
-rw-r--r--epan/dissectors/packet-iscsi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-iscsi.c b/epan/dissectors/packet-iscsi.c
index a30d03d61f..a0830726f0 100644
--- a/epan/dissectors/packet-iscsi.c
+++ b/epan/dissectors/packet-iscsi.c
@@ -1321,6 +1321,7 @@ dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint off
proto_tree_add_item(ti, hf_iscsi_TotalAHSLength, tvb, offset + 4, 1, ENC_BIG_ENDIAN);
}
proto_tree_add_uint(ti, hf_iscsi_DataSegmentLength, tvb, offset + 5, 3, tvb_get_ntoh24(tvb, offset + 5));
+ cdata->itlq.data_length=tvb_get_ntoh24(tvb, offset + 5);
if(iscsi_protocol_version > ISCSI_PROTOCOL_DRAFT09) {
if (A_bit) {
dissect_scsi_lun(ti, tvb, offset + 8);