From b99ce1a967b4a2d8854785a7da60a094b5f618ee Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Wed, 17 Jan 2007 17:11:09 +0000 Subject: 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 --- epan/dissectors/packet-scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-scsi.c') 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 */ -- cgit v1.2.3