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>
This commit is contained in:
Pascal Quantin 2015-06-04 00:05:52 +02:00 committed by Alexis La Goutte
parent dbcd2a20ba
commit e309d9e8a7
1 changed files with 4 additions and 0 deletions

View File

@ -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);