aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/capture_opts.c b/capture_opts.c
index f783d9f811..4feccd79b0 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -1095,7 +1095,8 @@ collect_ifaces(capture_options *capture_opts)
interface_opts.extcap_fifo = NULL;
interface_opts.extcap_args = device.external_cap_args_settings;
interface_opts.extcap_pid = (GPid)-1;
- g_hash_table_ref(interface_opts.extcap_args);
+ if (interface_opts.extcap_args)
+ g_hash_table_ref(interface_opts.extcap_args);
#endif
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
interface_opts.buffer_size = device.buffer;