aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smtp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-06-15 15:03:43 -0700
committerGuy Harris <guy@alum.mit.edu>2018-06-15 22:04:27 +0000
commit2d4b50fc3d0bbb8a87ac613e050d671d7c5fd80e (patch)
treec565843d1faad6bf676904eb0ed2b809078df717 /epan/dissectors/packet-smtp.c
parent3d5b268323d1e8425b089b32fafdca6b071832f0 (diff)
Put the entire server response into the Info column as is.
Don't assume that the 3-digit code we got was followed by a blank, and display the code followed by a blank followed by the parameters.. Instead, just put the raw text of the entire line into the Info column. Bug: 14878 Change-Id: I1e081366bf859723158a36f10e86614fe52f124d Reviewed-on: https://code.wireshark.org/review/28292 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r--epan/dissectors/packet-smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c
index c040774f10..104b705464 100644
--- a/epan/dissectors/packet-smtp.c
+++ b/epan/dissectors/packet-smtp.c
@@ -1122,8 +1122,8 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
proto_tree_add_item(cmdresp_tree, hf_smtp_rsp_parameter, tvb,
offset + 4, linelen - 4, ENC_ASCII|ENC_NA);
- col_append_fstr(pinfo->cinfo, COL_INFO, "%d %s", code,
- tvb_format_text(tvb, offset + 4, linelen - 4));
+ col_append_fstr(pinfo->cinfo, COL_INFO, "%s",
+ tvb_format_text(tvb, offset, linelen));
}
} else {
col_append_str(pinfo->cinfo, COL_INFO,