aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-netmon.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-09-24 11:02:11 -0700
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2018-09-24 20:08:43 +0000
commitab53831abd962d4fc57e58fe3a7cc18c523c543c (patch)
tree6b0d0a25f105f8356697127008338660d273ed1b /epan/dissectors/packet-netmon.c
parent1c0d066e10353d48c2fd9f965b160eeedbea511e (diff)
Netmon+Message Analyzer: Fix a couple of lengths.
Set the length of the Network Monitor Event and ETW Ndis protocols to that of their respective headers instead of the remaining TVB length. Add packet-netmon.c and packet-messageanalyzer.c to .editorconfig. Change-Id: I50c23c63a74190cebf760fa6b374cc1b78c0191e Reviewed-on: https://code.wireshark.org/review/29810 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-netmon.c')
-rw-r--r--epan/dissectors/packet-netmon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-netmon.c b/epan/dissectors/packet-netmon.c
index 77b4a723bb..44267b0213 100644
--- a/epan/dissectors/packet-netmon.c
+++ b/epan/dissectors/packet-netmon.c
@@ -591,7 +591,9 @@ dissect_netmon_event(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
if (!dissector_try_guid_new(provider_id_table, &provider_guid, provider_id_tvb, pinfo, tree, TRUE, &provider_id_data))
{
proto_tree_add_item(event_tree, hf_netmon_event_user_data, tvb, offset, user_data_size, ENC_NA);
+ offset += user_data_size;
}
+ proto_item_set_len(ti, offset);
return tvb_captured_length(tvb);
}