aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ftp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-07-15 09:40:20 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-07-15 09:40:20 +0000
commitff3a2e92b581bf5876ab65065f6f238b4f66aa3b (patch)
tree63c03c1de4c28b2cc27fe01784882d374d3c64d1 /packet-ftp.c
parentbc23243cd8d41f81ef9b63b521288cce32e98704 (diff)
SMTP and FTP response codes need more than 1 byte, as they can go up to
999; give them 4. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5874 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ftp.c')
-rw-r--r--packet-ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ftp.c b/packet-ftp.c
index 4c33b7fce3..d5b6a39c41 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.45 2002/07/14 00:40:07 guy Exp $
+ * $Id: packet-ftp.c,v 1.46 2002/07/15 09:40:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -214,7 +214,7 @@ dissect_ftp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item *ti;
gint offset = 0;
const u_char *line;
- guint8 code;
+ guint32 code;
gboolean is_pasv_response = FALSE;
gint next_offset;
int linelen;
@@ -451,7 +451,7 @@ proto_register_ftp(void)
{ &hf_ftp_response_code,
{ "Response code", "ftp.response.code",
- FT_UINT8, BASE_DEC, NULL, 0x0,
+ FT_UINT32, BASE_DEC, NULL, 0x0,
"", HFILL }},
{ &hf_ftp_response_arg,