From Patrick vd Lageweg:
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 17 Jan 2007 17:11:09 +0000 (17:11 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 17 Jan 2007 17:11:09 +0000 (17:11 +0000)
The "NUMBER OF BLOCKS" field in the SCSI MODE SENSE return data is 24 bits and not 32 bits. This patch fixes that.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20462 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-scsi.c

index 1f85ee5413c93f2cb91aa723f3dbbc470601d93c..831492ddd663c0632862c4149b7c37840cc066ee 100644 (file)
@@ -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 */