diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-04-29 09:57:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-04-29 09:57:29 +0000 |
commit | 4943a12e1b93a695ff82a4716d14981a5899a52f (patch) | |
tree | d49363298b36301757beae3590f7c0587062279d /packet-mip.c | |
parent | ffac667c3be2bc0fb9107ecf2f00046e4f1e48f3 (diff) |
Dissect MIP extensions if the packet was claimed to have more data in it
than the fixed-length stuff, even if that runs past the end of the
captured data, so if it *does* run past the end of the captured data, we
report a short frame.
svn path=/trunk/; revision=5292
Diffstat (limited to 'packet-mip.c')
-rw-r--r-- | packet-mip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-mip.c b/packet-mip.c index 51ba305722..6c2bd4ea76 100644 --- a/packet-mip.c +++ b/packet-mip.c @@ -2,7 +2,7 @@ * Routines for Mobile IP dissection * Copyright 2000, Stefan Raab <sraab@cisco.com> * - * $Id: packet-mip.c,v 1.28 2002/04/29 08:20:09 guy Exp $ + * $Id: packet-mip.c,v 1.29 2002/04/29 09:57:29 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -378,7 +378,7 @@ dissect_mip( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) } /* End switch */ if (tree) { - if (tvb_offset_exists(tvb, offset)) + if (tvb_reported_length_remaining(tvb, offset) > 0) dissect_mip_extensions(tvb, offset, pinfo, mip_tree); } } /* dissect_mip */ |