summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-06-22 17:02:35 -0400
committerMichael Mann <mmann78@netscape.net>2017-06-22 23:53:24 +0000
commite958a26772eba0c0b5e15336ee703f62d6b825f6 (patch)
tree6a2002e02c740908a375b2b52a600955d398ac36
parent76b1d4871c5712ee8405828f3b01b108660fe901 (diff)
downloadwireshark-e958a26772eba0c0b5e15336ee703f62d6b825f6.tar.gz
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 <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> (cherry picked from commit 66c2f5b5f17c3873d0b9e6ea853ccf7bf8c7062d) Reviewed-on: https://code.wireshark.org/review/22364
-rw-r--r--ui/proto_hier_stats.c2
1 files changed, 1 insertions, 1 deletions
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);