aboutsummaryrefslogtreecommitdiffstats
path: root/packet-scsi.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2004-05-13 21:56:19 +0000
committerGerald Combs <gerald@wireshark.org>2004-05-13 21:56:19 +0000
commitd5b62ad1e0fc3411644c0cba9ca47dcd8311b968 (patch)
treeb44f154109a5085264a90f95406d1f37d57ab72e /packet-scsi.c
parent0de06c9acde0e24bbb16fc5d3a5c6f8dc7b3a6a7 (diff)
From Dinesh Dutt: Mode Sense (10) and Mode Select (10) bugfixes.
svn path=/trunk/; revision=10880
Diffstat (limited to 'packet-scsi.c')
-rw-r--r--packet-scsi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-scsi.c b/packet-scsi.c
index 7aa825219e..884c1a48f0 100644
--- a/packet-scsi.c
+++ b/packet-scsi.c
@@ -2,7 +2,7 @@
* Routines for decoding SCSI CDBs and responses
* Author: Dinesh G Dutt (ddutt@cisco.com)
*
- * $Id: packet-scsi.c,v 1.36 2003/12/17 23:35:29 ulfl Exp $
+ * $Id: packet-scsi.c,v 1.37 2004/05/13 21:56:19 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2637,8 +2637,8 @@ dissect_scsi_modeselect10 (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
desclen = tvb_get_guint8 (tvb, offset);
proto_tree_add_text (tree, tvb, offset, 1,
"Block Descriptor Length: %u", desclen);
- offset += 1;
- payload_len -= 1;
+ offset += 2;
+ payload_len -= 2;
if (!dissect_scsi_blockdescs (tvb, pinfo, tree, offset, payload_len,
desclen, devtype, longlba))
@@ -2863,8 +2863,8 @@ dissect_scsi_modesense10 (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
desclen = tvb_get_guint8 (tvb, offset);
proto_tree_add_text (tree, tvb, offset, 1,
"Block Descriptor Length: %u", desclen);
- offset += 1;
- tot_len -= 1;
+ offset += 2;
+ tot_len -= 2;
if (!dissect_scsi_blockdescs (tvb, pinfo, tree, offset, tot_len,
desclen, devtype, longlba))