aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rsh.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-13 08:58:17 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-13 08:58:17 +0000
commit9985115b8baf5bb77f376647f505a7892ba61028 (patch)
treef490426cc9cf304561779db94f5dbc3eef6c5395 /packet-rsh.c
parentead1cadaf3100560e373cc7395d09744d3288ef4 (diff)
Use "tvb_offset_exists()" rather than "tvb_length_remaining()" to check
whether there's any data left in the tvbuff starting at a specified offset. svn path=/trunk/; revision=2636
Diffstat (limited to 'packet-rsh.c')
-rw-r--r--packet-rsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-rsh.c b/packet-rsh.c
index 5d558fde03..06536f61fd 100644
--- a/packet-rsh.c
+++ b/packet-rsh.c
@@ -4,7 +4,7 @@
* Robert Tsai <rtsai@netapp.com>
* Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-rsh.c,v 1.5 2000/11/09 10:56:32 guy Exp $
+ * $Id: packet-rsh.c,v 1.6 2000/11/13 08:58:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -78,7 +78,7 @@ dissect_rsh(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/*
* Process the packet data, a line at a time.
*/
- while (tvb_length_remaining(tvb, offset)) {
+ while (tvb_offset_exists(tvb, offset)) {
/*
* Find the end of the line.
*/