diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-30 01:56:55 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-30 01:56:55 +0000 |
commit | 38783948ca7f4b47c215c49bff380518ee8be60d (patch) | |
tree | 2cca921b6de8c3e88c05cc912756ad6380b7643e /packet-tns.c | |
parent | bd2089e42662e41629b4bd965794295205fcf36e (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5597 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tns.c')
-rw-r--r-- | packet-tns.c | 10 |
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; } } |