aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ftp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-03 22:35:08 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-03 22:35:08 +0000
commite66556f584076855de6c2334eb2a9e0071afb1f8 (patch)
tree054fdfcf355120d142eeff2a41a416e9637d15b1 /packet-ftp.c
parent2ca7ff7848e7ae3941ccf9db264a78893994fae5 (diff)
Use the reported length, not the captured length, when saying how many
bytes of FTP data there were in the frame. Use -1 for the length in the top-level item for the FTP data. svn path=/trunk/; revision=5091
Diffstat (limited to 'packet-ftp.c')
-rw-r--r--packet-ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-ftp.c b/packet-ftp.c
index e2ce6ba790..3aa7664374 100644
--- a/packet-ftp.c
+++ b/packet-ftp.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* Copyright 2001, Juan Toledo <toledo@users.sourceforge.net> (Passive FTP)
*
- * $Id: packet-ftp.c,v 1.41 2002/01/24 09:20:47 guy Exp $
+ * $Id: packet-ftp.c,v 1.42 2002/04/03 22:35:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -371,14 +371,14 @@ dissect_ftpdata(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_fstr(pinfo->cinfo, COL_INFO, "FTP Data: %u bytes",
- tvb_length(tvb));
+ tvb_reported_length(tvb));
}
if (tree) {
data_length = tvb_length(tvb);
- ti = proto_tree_add_item(tree, proto_ftp_data, tvb, 0,
- data_length, FALSE);
+ ti = proto_tree_add_item(tree, proto_ftp_data, tvb, 0, -1,
+ FALSE);
ftp_data_tree = proto_item_add_subtree(ti, ett_ftp_data);
/*