From 9a0b5c4d4acff71b7ded57f0e0bd05b8d983d2c9 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 1 Feb 2007 20:10:51 +0000 Subject: use the correct offset to access the service action in PERSISTENT RESERVE IN svn path=/trunk/; revision=20672 --- epan/dissectors/packet-scsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-scsi.c b/epan/dissectors/packet-scsi.c index abfe3a77ec..3f72b72a88 100644 --- a/epan/dissectors/packet-scsi.c +++ b/epan/dissectors/packet-scsi.c @@ -3028,7 +3028,7 @@ dissect_spc3_persistentreservein (tvbuff_t *tvb, packet_info *pinfo _U_, proto_t return; if (isreq && iscdb) { - proto_tree_add_item (tree, hf_scsi_persresvin_svcaction, tvb, offset+1, + proto_tree_add_item (tree, hf_scsi_persresvin_svcaction, tvb, offset, 1, 0); proto_tree_add_item (tree, hf_scsi_alloclen16, tvb, offset+6, 2, 0); @@ -3038,7 +3038,7 @@ dissect_spc3_persistentreservein (tvbuff_t *tvb, packet_info *pinfo _U_, proto_t "Vendor Unique = %u, NACA = %u, Link = %u", flags & 0xC0, flags & 0x4, flags & 0x1); /* We store the service action since we want to interpret the data */ - cdata->itlq->flags = tvb_get_guint8 (tvb, offset+1); + cdata->itlq->flags = tvb_get_guint8 (tvb, offset); } else { if (cdata) { -- cgit v1.2.1