aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-multipart.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2014-12-01 14:47:02 +0100
committerAnders Broman <a.broman58@gmail.com>2014-12-02 05:42:04 +0000
commit325014a78dd86aa73ff8e0c82a5afcf54db6e94b (patch)
treef26693624d7360b89745d6caaa611d2c278e5081 /epan/dissectors/packet-multipart.c
parent9441909f03b313b6f97224cc60249d6370aa526f (diff)
multipart: Don't include boundary in preamble.
Change-Id: I2d2fd28462b974e4ad656e36f2562633d0743962 Reviewed-on: https://code.wireshark.org/review/5556 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-multipart.c')
-rw-r--r--epan/dissectors/packet-multipart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c
index 2e3afcdeb3..e1bc3a063b 100644
--- a/epan/dissectors/packet-multipart.c
+++ b/epan/dissectors/packet-multipart.c
@@ -555,8 +555,8 @@ process_preamble(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary,
if (boundary_line_len > 0) {
gint body_part_start = boundary_start + boundary_line_len;
- if (body_part_start > 0) {
- proto_tree_add_item(tree, hf_multipart_preamble, tvb, 0, body_part_start, ENC_NA);
+ if (boundary_start > 0) {
+ proto_tree_add_item(tree, hf_multipart_preamble, tvb, 0, boundary_start, ENC_NA);
}
proto_tree_add_item(tree, hf_multipart_first_boundary, tvb, boundary_start, boundary_line_len, ENC_NA|ENC_ASCII);
return body_part_start;