diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-04-03 22:35:08 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-04-03 22:35:08 +0000 |
commit | 5bbe8d100cc9cc1d0d8fcdc626d444b35e0b56aa (patch) | |
tree | 054fdfcf355120d142eeff2a41a416e9637d15b1 /packet-ftp.c | |
parent | f43ced4dea75b5285ee9502c865ea52f1fca1b1c (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5091 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ftp.c')
-rw-r--r-- | packet-ftp.c | 8 |
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); /* |