aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-11-28 10:28:31 +0000
committerGuy Harris <guy@alum.mit.edu>2005-11-28 10:28:31 +0000
commitbee3824471a27c035aefdfb2a0ec11e9deba0494 (patch)
tree744b0c1810fb7cad6a4624247126b09846b52fbc
parentb7853e1285c70a6e1e351ec6d249c9a0f22d9266 (diff)
Update the offset correctly regardless of whether we're building a
protocol tree or not. svn path=/trunk/; revision=16617
-rw-r--r--epan/dissectors/packet-sndcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sndcp.c b/epan/dissectors/packet-sndcp.c
index 9736d35a61..468eb30309 100644
--- a/epan/dissectors/packet-sndcp.c
+++ b/epan/dissectors/packet-sndcp.c
@@ -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++;
}
}