use the correct offset to access the service action in PERSISTENT RESERVE IN
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 1 Feb 2007 20:10:51 +0000 (20:10 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 1 Feb 2007 20:10:51 +0000 (20:10 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20672 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-scsi.c

index abfe3a77ecfbbeba942631f3ab683c2ca238e3c3..3f72b72a888c405c543c7e4e1d58751a9174e43a 100644 (file)
@@ -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) {