From Fred Fierling:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Oct 2010 05:30:01 +0000 (05:30 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Oct 2010 05:30:01 +0000 (05:30 +0000)
Found a bug in the changes from sizeof -> numeric.

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

epan/dissectors/packet-zbee-aps.c

index 48771a7030772a2c93f33c08b9d03c4c6a67143f..97d86e0fbc2a781f0fc884c867c022d6e420edba 100644 (file)
@@ -732,12 +732,11 @@ dissect_zbee_aps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     if (tree) {
         ti = proto_tree_add_uint(aps_tree, hf_zbee_aps_profile, tvb, offset,2,
                 packet.profile);
-        offset +=2;
         /* Update the protocol root and info column later, after the source endpoint
          * so that the source and destination will be back-to-back in the text.
          */
        }
-    offset += sizeof(guint16);
+    offset +=2;
 
     /* The source endpoint is present for all cases except indirect /w indirect_mode == FALSE */
     if ((packet.delivery != ZBEE_APS_FCF_INDIRECT) || (!packet.indirect_mode)) {