diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-02-01 20:10:51 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2007-02-01 20:10:51 +0000 |
commit | 9a0b5c4d4acff71b7ded57f0e0bd05b8d983d2c9 (patch) | |
tree | fb75a22f73e108f6122db4a8a19f9ad8fc4a4342 | |
parent | ca4ef167228f8032a7d6cbb81d000daf5cd15c76 (diff) | |
download | wireshark-9a0b5c4d4acff71b7ded57f0e0bd05b8d983d2c9.tar.gz |
use the correct offset to access the service action in PERSISTENT RESERVE IN
svn path=/trunk/; revision=20672
-rw-r--r-- | epan/dissectors/packet-scsi.c | 4 |
1 files 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) { |