aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tftp.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-tftp.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-tftp.c')
-rw-r--r--packet-tftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-tftp.c b/packet-tftp.c
index fff4597916..bc9e11b09a 100644
--- a/packet-tftp.c
+++ b/packet-tftp.c
@@ -5,7 +5,7 @@
* Craig Newell <CraigN@cheque.uq.edu.au>
* RFC2347 TFTP Option Extension
*
- * $Id: packet-tftp.c,v 1.16 2000/11/10 09:22:46 guy Exp $
+ * $Id: packet-tftp.c,v 1.17 2000/11/13 08:58:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -212,7 +212,7 @@ tftp_dissect_options(tvbuff_t *tvb, int offset, proto_tree *tree)
{
int i1, i2;
- while (tvb_length_remaining(tvb, offset)) {
+ while (tvb_offset_exists(tvb, offset)) {
i1 = tvb_strnlen(tvb, offset, -1); /* length of option */
i2 = tvb_strnlen(tvb, offset+i1+1, -1); /* length of value */
proto_tree_add_text(tree, tvb, offset, i1+i2+2,