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-ospf.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-ospf.c')
-rw-r--r-- | packet-ospf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-ospf.c b/packet-ospf.c index a307bd7652..9844fffe62 100644 --- a/packet-ospf.c +++ b/packet-ospf.c @@ -2,7 +2,7 @@ * Routines for OSPF packet disassembly * (c) Copyright Hannes R. Boehm <hannes@boehm.org> * - * $Id: packet-ospf.c,v 1.67 2002/05/14 09:46:38 guy Exp $ + * $Id: packet-ospf.c,v 1.68 2002/05/30 05:26:05 guy Exp $ * * At this time, this module is able to analyze OSPF * packets as specified in RFC2328. MOSPF (RFC1584) and other @@ -634,7 +634,8 @@ dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; default: - call_dissector(data_handle,tvb_new_subset(tvb, ospf_header_length,-1,tvb_reported_length_remaining(tvb,ospf_header_length)), pinfo, tree); + call_dissector(data_handle, + tvb_new_subset(tvb, ospf_header_length, -1, -1), pinfo, tree); break; } } |