diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-13 21:56:19 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-13 21:56:19 +0000 |
commit | f91fb3955882e0d471ccdb763245db0f69b1d875 (patch) | |
tree | b44f154109a5085264a90f95406d1f37d57ab72e | |
parent | 4499212557ed4f464b7a1a57454e065ca1b0e3eb (diff) |
From Dinesh Dutt: Mode Sense (10) and Mode Select (10) bugfixes.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10880 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | packet-scsi.c | 10 |
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)) |