From 8b515e9340f9eb93c79b74d129b1fddfb8e5299a Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Sun, 16 Aug 2009 12:36:22 +0000 Subject: Switch a bunch of dissectors over to using tvb_new_subset_remaining() svn path=/trunk/; revision=29446 --- asn1/pres/packet-pres-template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asn1/pres') 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; } -- cgit v1.2.1