aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-multipart.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-06-04 00:05:52 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-06-04 05:50:34 +0000
commite309d9e8a7635cb7917c2c3b7bfde964341d9146 (patch)
tree1847247a1578f3a942f2e4f9fea51dc70a366386 /epan/dissectors/packet-multipart.c
parentdbcd2a20ba79e26cc096c158fce87d2e5812069b (diff)
MIME Multipart: fix display of the last IMF field
Regression was introduced in g23f0e16 Bug: 11249 Change-Id: I2822a4452d3cdf2e53e5f3f1f3034e758fec129b Reviewed-on: https://code.wireshark.org/review/8747 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-multipart.c')
-rw-r--r--epan/dissectors/packet-multipart.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c
index 4e90e454a0..2fe889098a 100644
--- a/epan/dissectors/packet-multipart.c
+++ b/epan/dissectors/packet-multipart.c
@@ -611,6 +611,10 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
if (next_offset == offset) {
break;
}
+ if (last_field) {
+ /* Add the extra CRLF of the last field */
+ next_offset += 2;
+ }
hdr_str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, next_offset - offset, ENC_ASCII);