aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-04-11 09:22:13 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2018-04-11 07:28:17 +0000
commit89904b61332e01f69cb9951238eed4ba57e95399 (patch)
treef1d891f2d1411781da3771537e67e2eb13592a3b
parent1549cc122c868cf286bb82f6169cc4d80a9d70f3 (diff)
extcap: Fix crash in extcap_verify_capture_filter
This fixes a regression issue from g57fed5d1 when freeing the arguments passed to extcap. Change-Id: Ic4d6a129569f9e691fd2608e0229342b8b5e9783 Reviewed-on: https://code.wireshark.org/review/26870 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r--extcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap.c b/extcap.c
index eb3837820f..c5f446a6d0 100644
--- a/extcap.c
+++ b/extcap.c
@@ -1019,9 +1019,9 @@ extcap_verify_capture_filter(const char *ifname, const char *filter, gchar **err
g_log(LOG_DOMAIN_CAPTURE, G_LOG_LEVEL_DEBUG, "Extcap path %s",
get_extcap_dir());
- arguments = g_list_append(arguments, EXTCAP_ARGUMENT_CAPTURE_FILTER);
+ arguments = g_list_append(arguments, g_strdup(EXTCAP_ARGUMENT_CAPTURE_FILTER));
arguments = g_list_append(arguments, g_strdup(filter));
- arguments = g_list_append(arguments, EXTCAP_ARGUMENT_INTERFACE);
+ arguments = g_list_append(arguments, g_strdup(EXTCAP_ARGUMENT_INTERFACE));
arguments = g_list_append(arguments, g_strdup(ifname));
extcap_callback_info_t cb_info;