forked from osmocom/wireshark
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:
parent
dbcd2a20ba
commit
e309d9e8a7
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue