aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tns.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-30 01:56:55 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-30 01:56:55 +0000
commit4401f1433f8b2db82cf199274f96258662d02aeb (patch)
tree2cca921b6de8c3e88c05cc912756ad6380b7643e /packet-tns.c
parentb5f0786318ecdf66e5eb4683d850595e7364a0d4 (diff)
Don't pass "tvb_reported_length_remaining(tvb, offset)" as the fourth
argument to "tvb_new_subset()" - just use -1 if the subset tvbuff is to run to the end of the parent tvbuff. svn path=/trunk/; revision=5597
Diffstat (limited to 'packet-tns.c')
-rw-r--r--packet-tns.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/packet-tns.c b/packet-tns.c
index 70e5ef35be..4b552252f9 100644
--- a/packet-tns.c
+++ b/packet-tns.c
@@ -1,7 +1,7 @@
/* packet-tns.c
* Routines for Oracle TNS packet dissection
*
- * $Id: packet-tns.c,v 1.29 2002/02/01 04:34:15 gram Exp $
+ * $Id: packet-tns.c,v 1.30 2002/05/30 01:56:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -224,7 +224,8 @@ static void dissect_tns_data(tvbuff_t *tvb, int offset, packet_info *pinfo,
if ( data_tree )
{
- call_dissector(data_handle,tvb_new_subset(tvb,offset,-1,tvb_reported_length_remaining(tvb,offset)),pinfo,data_tree);
+ call_dissector(data_handle,
+ tvb_new_subset(tvb, offset, -1, -1), pinfo, data_tree);
}
return;
@@ -804,7 +805,10 @@ dissect_tns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissect_tns_data(tvb,offset,pinfo,tree,tns_tree);
break;
default:
- call_dissector(data_handle,tvb_new_subset(tvb,offset,-1,tvb_reported_length_remaining(tvb,offset)),pinfo,tns_tree);
+ call_dissector(data_handle,
+ tvb_new_subset(tvb, offset, -1, -1), pinfo,
+ tns_tree);
+ break;
}
}