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 <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
Dario Lombardo 2016-10-26 11:57:29 +02:00 committed by Roland Knall
parent 5aacafba8e
commit 7bdcf75a5c
1 changed files with 1 additions and 6 deletions

View File

@ -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)