From e958a26772eba0c0b5e15336ee703f62d6b825f6 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 22 Jun 2017 17:02:35 -0400 Subject: Properly find packet comments "field" for protocol hierarchy stats. That way it can be properly filtered out. This was broken when pkt_comments was switched to a pino and wasn't available in the protocol filters list. Change-Id: Ie3f2b4f25eeb11be57111c98be87e33e0849174b Reviewed-on: https://code.wireshark.org/review/22363 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann (cherry picked from commit 66c2f5b5f17c3873d0b9e6ea853ccf7bf8c7062d) Reviewed-on: https://code.wireshark.org/review/22364 --- ui/proto_hier_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/proto_hier_stats.c b/ui/proto_hier_stats.c index a4a6373099..3275e16453 100644 --- a/ui/proto_hier_stats.c +++ b/ui/proto_hier_stats.c @@ -217,7 +217,7 @@ ph_stats_new(capture_file *cf) if (!cf) return NULL; - pc_proto_id = proto_get_id_by_filter_name("pkt_comment"); + pc_proto_id = proto_registrar_get_id_byname("pkt_comment"); /* Initialize the data */ ps = g_new(ph_stats_t, 1); -- cgit v1.2.1