diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-30 05:26:05 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-05-30 05:26:05 +0000 |
commit | f4f6d359bea2cbfb4c308854a3ffe799bf1c73ee (patch) | |
tree | fdc3b8c438ea29a573800ff2527762d60df25231 /packet-afp.c | |
parent | 5f070c161d68380e6408e35a098787fa26a393a2 (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@5599 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-afp.c')
-rw-r--r-- | packet-afp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-afp.c b/packet-afp.c index 7df53232c6..44af1f8e93 100644 --- a/packet-afp.c +++ b/packet-afp.c @@ -2,7 +2,7 @@ * Routines for afp packet dissection * Copyright 2002, Didier Gautheron <dgautheron@magic.fr> * - * $Id: packet-afp.c,v 1.15 2002/05/11 22:40:40 guy Exp $ + * $Id: packet-afp.c,v 1.16 2002/05/30 05:26:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -2640,8 +2640,10 @@ dissect_afp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset = dissect_reply_afp_write(tvb, pinfo, afp_tree, offset);break; } } - if (tree && offset < len) - call_dissector(data_handle,tvb_new_subset(tvb, offset,-1,tvb_reported_length_remaining(tvb,offset)), pinfo, afp_tree); + if (tree && offset < len) { + call_dissector(data_handle, tvb_new_subset(tvb, offset, -1, -1), + pinfo, afp_tree); + } } static void afp_reinit( void) |