aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smtp.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-smtp.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-smtp.c')
-rw-r--r--packet-smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smtp.c b/packet-smtp.c
index 3348800ee3..2c0e5cc42d 100644
--- a/packet-smtp.c
+++ b/packet-smtp.c
@@ -1,7 +1,7 @@
/* packet-smtp.c
* Routines for SMTP packet disassembly
*
- * $Id: packet-smtp.c,v 1.28 2002/07/14 08:27:34 guy Exp $
+ * $Id: packet-smtp.c,v 1.29 2002/07/15 09:40:20 guy Exp $
*
* Copyright (c) 2000 by Richard Sharpe <rsharpe@ns.aus.com>
*
@@ -119,7 +119,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
conversation_t *conversation;
struct smtp_request_val *request_val;
const u_char *line;
- guint8 code;
+ guint32 code;
int linelen;
gboolean eom_seen = FALSE;
gint next_offset;
@@ -532,7 +532,7 @@ proto_register_smtp(void)
"", HFILL }},
{ &hf_smtp_rsp_code,
- { "Response code", "smtp.response.code", FT_UINT8, BASE_DEC, NULL, 0x0,
+ { "Response code", "smtp.response.code", FT_UINT32, BASE_DEC, NULL, 0x0,
"", HFILL }},
{ &hf_smtp_rsp_parameter,