From 7bdcf75a5ceec4946e9227f77f31c2a6096161b3 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 26 Oct 2016 11:57:29 +0200 Subject: sshdump: remove default filter from capture mode. This allow to capture without any filter. Bug: 13048 Change-Id: I29fb1a7367375b9f3d83a4f610789ae159735198 Reviewed-on: https://code.wireshark.org/review/18561 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall --- extcap/sshdump.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'extcap') diff --git a/extcap/sshdump.c b/extcap/sshdump.c index 08a36c38be..e4f884c646 100644 --- a/extcap/sshdump.c +++ b/extcap/sshdump.c @@ -127,7 +127,6 @@ static ssh_channel run_ssh_command(ssh_session sshs, const char* capture_command gchar* cmdline; ssh_channel channel; char* quoted_iface = NULL; - char* default_filter = NULL; char* quoted_filter = NULL; char* count_str = NULL; unsigned int remote_port = 22; @@ -155,10 +154,7 @@ static ssh_channel run_ssh_command(ssh_session sshs, const char* capture_command g_debug("Remote capture command has disabled other options"); } else { quoted_iface = g_shell_quote(iface); - default_filter = local_interfaces_to_filter(remote_port); - if (!cfilter) - cfilter = default_filter; - quoted_filter = g_shell_quote(cfilter); + quoted_filter = (cfilter ? g_shell_quote(cfilter) : ""); if (count > 0) count_str = g_strdup_printf("-c %u", count); @@ -175,7 +171,6 @@ static ssh_channel run_ssh_command(ssh_session sshs, const char* capture_command } g_free(quoted_iface); - g_free(default_filter); g_free(quoted_filter); g_free(cmdline); if (count_str) -- cgit v1.2.1