diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-11-13 08:58:17 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-11-13 08:58:17 +0000 |
commit | 71a13e491fa5531e4d5edc49940af15cca1bfeb5 (patch) | |
tree | f490426cc9cf304561779db94f5dbc3eef6c5395 /packet-ftp.c | |
parent | 0a17fbe67357852350b670f821aeeaf34108840f (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2636 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ftp.c')
-rw-r--r-- | packet-ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ftp.c b/packet-ftp.c index 461c107886..6ca8fd315d 100644 --- a/packet-ftp.c +++ b/packet-ftp.c @@ -2,7 +2,7 @@ * Routines for ftp packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-ftp.c,v 1.21 2000/11/10 08:02:34 guy Exp $ + * $Id: packet-ftp.c,v 1.22 2000/11/13 08:57:59 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -163,7 +163,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * Show the rest of the request or response as text, * a line at a time. */ - while (tvb_length_remaining(tvb, offset)) { + while (tvb_offset_exists(tvb, offset)) { /* * Find the end of the line. */ |