aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2017-05-25 15:27:18 -0400
committerMichael Mann <mmann78@netscape.net>2017-05-25 22:18:52 +0000
commitd14b8f6fc5bc727355cd317197fab5b0fb349f4b (patch)
tree2a3fe55880fdb94d5f6e18c1a1683d896b0c7a4d /ui
parent9bd2b63968ecde680cdee8e8eff43e526ef178f4 (diff)
GTK: Don't allow extcap capture filters to be verified.
There isn't an API to do it and if WinPcap isn't present it can cause a crash. Change-Id: I5338f854acb26f0822ac027e6c853a550da3f7b1 Reviewed-on: https://code.wireshark.org/review/21758 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/capture_dlg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
index 75f1a76762..d7c04e8686 100644
--- a/ui/gtk/capture_dlg.c
+++ b/ui/gtk/capture_dlg.c
@@ -764,6 +764,11 @@ capture_all_filter_check_syntax_cb(GtkWidget *w _U_, gpointer user_data _U_)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "The link type of interface %s was not specified.", device.name);
continue; /* Programming error: somehow managed to select an "unsupported" entry */
}
+#ifdef HAVE_EXTCAP
+ /* Can't verify extcap capture filters */
+ if (device.if_info.extcap != NULL)
+ continue;
+#endif
filter_text = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT(filter_cm));
if (strlen(filter_text) == 0) {
colorize_filter_te_as_empty(filter_te);