summaryrefslogtreecommitdiff
path: root/ui/gtk/decode_as_dlg.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-08-13 11:21:58 -0400
committerMichael Mann <mmann78@netscape.net>2015-07-01 03:08:17 +0000
commitb0b027d1473cdda73a1592557179282ae656060b (patch)
tree2181c6327367a97889c52d3d07fcd2bdf209258a /ui/gtk/decode_as_dlg.c
parent986e34722b101218dd0a4b6b9bb23584f295309a (diff)
downloadwireshark-b0b027d1473cdda73a1592557179282ae656060b.tar.gz
Explicitly check for DCE/RPC dissector name in the Decode As dialog because it doesn't have a specific subdissector table to invoke the DCE/RPC "Decode As" tab.
bug:10368 Change-Id: Iff94ddaf0c9f4d002be89dab480b6f9550ebd82f Reviewed-on: https://code.wireshark.org/review/3575 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Cal Turney <cturney@charter.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/decode_as_dlg.c')
-rw-r--r--ui/gtk/decode_as_dlg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/gtk/decode_as_dlg.c b/ui/gtk/decode_as_dlg.c
index b97194f793..e85fb74a6d 100644
--- a/ui/gtk/decode_as_dlg.c
+++ b/ui/gtk/decode_as_dlg.c
@@ -1303,7 +1303,6 @@ decode_add_notebook (GtkWidget *format_hb)
const char* proto_name;
GList *list_entry;
decode_as_t *entry;
- dissector_table_t sub_dissectors;
/* Start a nootbook for flipping between sets of changes */
notebook = gtk_notebook_new();
@@ -1320,8 +1319,8 @@ decode_add_notebook (GtkWidget *format_hb)
entry = (decode_as_t *)list_entry->data;
if (!strcmp(proto_name, entry->name))
{
- sub_dissectors = find_dissector_table(entry->table_name);
- if (sub_dissectors != NULL)
+ if ((find_dissector_table(entry->table_name) != NULL) ||
+ (!strcmp(proto_name, "dcerpc")))
{
page = decode_add_simple_page(entry);
label = gtk_label_new(entry->title);