diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2007-01-17 17:11:09 +0000 |
---|---|---|
committer | Jaap Keuter <jaap.keuter@xs4all.nl> | 2007-01-17 17:11:09 +0000 |
commit | b99ce1a967b4a2d8854785a7da60a094b5f618ee (patch) | |
tree | f22a6b410228be7673f2b40d4c2ce16724915145 /epan/dissectors/packet-scsi.c | |
parent | 0656a77020ddae5edb81d00bff7c2b0fa360ab69 (diff) | |
download | wireshark-b99ce1a967b4a2d8854785a7da60a094b5f618ee.tar.gz wireshark-b99ce1a967b4a2d8854785a7da60a094b5f618ee.tar.bz2 wireshark-b99ce1a967b4a2d8854785a7da60a094b5f618ee.zip |
From Patrick vd Lageweg:
The "NUMBER OF BLOCKS" field in the SCSI MODE SENSE return data is 24 bits and not 32 bits. This patch fixes that.
svn path=/trunk/; revision=20462
Diffstat (limited to 'epan/dissectors/packet-scsi.c')
-rw-r--r-- | epan/dissectors/packet-scsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c index 1f85ee5413..831492ddd6 100644 --- a/epan/dissectors/packet-scsi.c +++ b/epan/dissectors/packet-scsi.c @@ -1814,7 +1814,7 @@ dissect_scsi_blockdescs (tvbuff_t *tvb, packet_info *pinfo _U_, if(tvb_length_remaining(tvb, offset)<3) return; proto_tree_add_text (scsi_tree, tvb, offset, 3, "No. of Blocks: %u", - tvb_get_ntohl (tvb, offset)); + tvb_get_ntoh24 (tvb, offset)); offset += 3; offset++; /* reserved */ |