aboutsummaryrefslogtreecommitdiffstats
path: root/packet-auto_rp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-01 12:05:59 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-01 12:05:59 +0000
commit897e61ee45a03a4f863f24221eb2b682cd457530 (patch)
tree81150ef855ba5c5a90664497c14141dad39a51d8 /packet-auto_rp.c
parent0322b68e1e2b6d5d9dfeba740635c0ccc64b1c96 (diff)
downloadwireshark-897e61ee45a03a4f863f24221eb2b682cd457530.tar.gz
wireshark-897e61ee45a03a4f863f24221eb2b682cd457530.tar.bz2
wireshark-897e61ee45a03a4f863f24221eb2b682cd457530.zip
Use "tvb_offset_exists()" rather than "tvb_length_remaining()" to see if
there's any more data in the packet. svn path=/trunk/; revision=4667
Diffstat (limited to 'packet-auto_rp.c')
-rw-r--r--packet-auto_rp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-auto_rp.c b/packet-auto_rp.c
index d90a20bf99..9d9647270f 100644
--- a/packet-auto_rp.c
+++ b/packet-auto_rp.c
@@ -4,7 +4,7 @@
*
* Heikki Vatiainen <hessu@cs.tut.fi>
*
- * $Id: packet-auto_rp.c,v 1.19 2002/02/01 04:34:15 gram Exp $
+ * $Id: packet-auto_rp.c,v 1.20 2002/02/01 12:05:59 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -168,7 +168,7 @@ static void dissect_auto_rp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
for (i = 0; i < rp_count; i++)
offset = do_auto_rp_map(tvb, offset, auto_rp_tree);
- if (tvb_length_remaining(tvb, offset) > 0)
+ if (tvb_offset_exists(tvb, offset))
proto_tree_add_text(tree, tvb, offset, -1, "Trailing junk");
}