Ethereal-dev: [Ethereal-dev] [patch] minor 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: Tue, 28 Mar 2006 15:27:14 -0500
the track # in read toc command dissector should be 1 instead of 4. this
patch fixed it.

pls apply.

Ming

Index: epan/dissectors/packet-scsi.c
===================================================================
--- epan/dissectors/packet-scsi.c	(revision 17751)
+++ epan/dissectors/packet-scsi.c	(working copy)
@@ -4459,7 +4459,7 @@
             while(len>0){
                 proto_tree_add_item (tree, hf_scsi_q_subchannel_adr, tvb, offset+1, 1, 0);
                 proto_tree_add_item (tree, hf_scsi_q_subchannel_control, tvb, offset+1, 1, 0);
-                proto_tree_add_item (tree, hf_scsi_track, tvb, offset+2, 4, 0);
+                proto_tree_add_item (tree, hf_scsi_track, tvb, offset+2, 1, 0);
                 if(cdata->flags&0x0100){
                     proto_tree_add_item (tree, hf_scsi_track_start_time, tvb, offset+4, 4, 0);
                 } else {