Update the offset correctly regardless of whether we're building a
authorGuy Harris <guy@alum.mit.edu>
Mon, 28 Nov 2005 10:28:31 +0000 (10:28 -0000)
committerGuy Harris <guy@alum.mit.edu>
Mon, 28 Nov 2005 10:28:31 +0000 (10:28 -0000)
protocol tree or not.

svn path=/trunk/; revision=16617

epan/dissectors/packet-sndcp.c

index 9736d35a61f810c01447787bb6bd7ba61afd4512..468eb303098ee7af5c78faccb582acd3c52e0d74 100644 (file)
@@ -282,8 +282,8 @@ dissect_sndcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        npdu_field_item = proto_tree_add_text(sndcp_tree, tvb, offset,1, "Acknowledged mode, N-PDU %d", npdu_field1 );
        npdu_field_tree = proto_item_add_subtree(npdu_field_item, ett_sndcp_npdu_field);
        proto_tree_add_uint(npdu_field_tree, hf_sndcp_npdu1, tvb, offset, 1, npdu_field1 );
-       offset++;
       }
+      offset++;
     }
   }