Ethereal-dev: [Ethereal-dev] [patch] fix for packet-scsi.c

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, 30 Mar 2006 16:29:56 -0500
fix a minor error in mode_select, packet-scsi.c

the block descriptor for mode_select 10 is 2 bytes.

pls apply.
Index: epan/dissectors/packet-scsi.c
===================================================================
--- epan/dissectors/packet-scsi.c	(revision 17770)
+++ epan/dissectors/packet-scsi.c	(working copy)
@@ -2989,8 +2989,8 @@ dissect_spc3_modeselect10 (tvbuff_t *tvb
 
         if (payload_len < 1)
             return;
-        desclen = tvb_get_guint8 (tvb, offset);
-        proto_tree_add_text (tree, tvb, offset, 1,
+        desclen = tvb_get_ntohs (tvb, offset);
+        proto_tree_add_text (tree, tvb, offset, 2,
                              "Block Descriptor Length: %u", desclen);
         offset += 2;
         payload_len -= 2;