Ethereal-dev: [Ethereal-dev] bug in packet-scsi.c for READ ELEMENT STATUS

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

From: Ming Zhang <mingz@xxxxxxxxxxx>
Date: Thu, 17 Mar 2005 21:27:19 -0500
minor bug in scsi for this command. see SMC2 page 29.


ming

diff -Nura ethereal-0.10.10/epan/dissectors/packet-scsi.c ethereal-0.10.10.res/epan/dissectors/packet-scsi.c
--- ethereal-0.10.10/epan/dissectors/packet-scsi.c	2005-03-10 10:53:43.000000000 -0500
+++ ethereal-0.10.10.res/epan/dissectors/packet-scsi.c	2005-03-17 21:25:34.146513188 -0500
@@ -4246,9 +4246,9 @@
         proto_tree_add_text (tree, tvb, offset+4, 1,
                              "CURDATA: %u, DVCID: %u",
                              (flags & 0x02) >> 1, flags & 0x01);
-        proto_tree_add_text (tree, tvb, offset+5, 3,
+        proto_tree_add_text (tree, tvb, offset+6, 3,
                              "Allocation Length: %u",
-                             tvb_get_ntoh24 (tvb, offset+5));
+                             tvb_get_ntoh24 (tvb, offset+6));
         flags = tvb_get_guint8 (tvb, offset+10);
         proto_tree_add_uint_format (tree, hf_scsi_control, tvb, offset+10, 1,
                                     flags,