aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/pres/packet-pres-template.c
diff options
context:
space:
mode:
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-16 12:36:22 +0000
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>2009-08-16 12:36:22 +0000
commit8b515e9340f9eb93c79b74d129b1fddfb8e5299a (patch)
tree4a92d1e15649b285aa970ae51790d8e6747ca258 /asn1/pres/packet-pres-template.c
parentfe6f8b92c7f1f72a0eb677f01899f1dfa07b5342 (diff)
Switch a bunch of dissectors over to using tvb_new_subset_remaining()
svn path=/trunk/; revision=29446
Diffstat (limited to 'asn1/pres/packet-pres-template.c')
-rw-r--r--asn1/pres/packet-pres-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/pres/packet-pres-template.c b/asn1/pres/packet-pres-template.c
index 01a6035df9..01236857f5 100644
--- a/asn1/pres/packet-pres-template.c
+++ b/asn1/pres/packet-pres-template.c
@@ -208,7 +208,7 @@ pres_try_users_table(guint32 ctx_id, tvbuff_t *tvb, int offset, packet_info *pin
if (u->ctx_id == ctx_id) {
/* Register oid so other dissectors can find this connection */
register_ctx_id_and_oid(pinfo, u->ctx_id, u->oid);
- next_tvb = tvb_new_subset(tvb, offset, -1, -1);
+ next_tvb = tvb_new_subset_remaining(tvb, offset);
call_ber_oid_callback(u->oid, next_tvb, offset, pinfo, global_tree);
return TRUE;
}