aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packet-mip.c4
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 */