aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2008-08-12 05:14:29 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2008-08-12 05:14:29 +0000
commitbfc12627c962560edb409880effdc4a9342c73c2 (patch)
treed4b02eadbb85e54ee2fe79ba03b2a3740b7231cf /gtk
parent3eadb385c3280a23cd277d8dbc57a33e4f6aecc3 (diff)
From Alexey Neyman:
Start Wireshark without a preference file saved. Open the capture options dialog, then click "Start" button without selecting any interface. Wireshark segfaults while dereferencing NULL pointer in get_if_name() called from capture_start_cb(). svn path=/trunk/; revision=25987
Diffstat (limited to 'gtk')
-rw-r--r--gtk/capture_dlg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 2e5ef7e771..b05bf005e2 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -1871,6 +1871,9 @@ capture_start_cb(GtkWidget *w _U_, gpointer d _U_)
if (global_capture_opts.iface == NULL) {
gchar *if_device = g_strdup(prefs.capture_device);
+ if (if_device == NULL) {
+ return;
+ }
if_name = g_strdup(get_if_name(if_device));
g_free (if_device);
} else {