diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-30 01:56:55 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-30 01:56:55 +0000 |
commit | 4401f1433f8b2db82cf199274f96258662d02aeb (patch) | |
tree | 2cca921b6de8c3e88c05cc912756ad6380b7643e /packet-chdlc.c | |
parent | b5f0786318ecdf66e5eb4683d850595e7364a0d4 (diff) | |
download | wireshark-4401f1433f8b2db82cf199274f96258662d02aeb.tar.gz wireshark-4401f1433f8b2db82cf199274f96258662d02aeb.tar.bz2 wireshark-4401f1433f8b2db82cf199274f96258662d02aeb.zip |
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-chdlc.c')
-rw-r--r-- | packet-chdlc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-chdlc.c b/packet-chdlc.c index b1e141c4ef..1ba74eaaec 100644 --- a/packet-chdlc.c +++ b/packet-chdlc.c @@ -1,7 +1,7 @@ /* packet-chdlc.c * Routines for Cisco HDLC packet disassembly * - * $Id: packet-chdlc.c,v 1.12 2002/04/13 09:22:39 guy Exp $ + * $Id: packet-chdlc.c,v 1.13 2002/05/30 01:56:54 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -280,7 +280,8 @@ dissect_slarp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_add_fstr(pinfo->cinfo, COL_INFO, "Unknown packet type 0x%08X", code); if (tree) { proto_tree_add_uint(slarp_tree, hf_slarp_ptype, tvb, 0, 4, code); - call_dissector(data_handle,tvb_new_subset(tvb, 4,-1,tvb_reported_length_remaining(tvb,4)), pinfo, slarp_tree); + call_dissector(data_handle, tvb_new_subset(tvb, 4, -1, -1), pinfo, + slarp_tree); } break; } |