diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-10-26 11:57:29 +0200 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-10-31 09:38:42 +0000 |
commit | 7bdcf75a5ceec4946e9227f77f31c2a6096161b3 (patch) | |
tree | f2f9bed46a103d15f8b80f0490f1e179df74617d /extcap | |
parent | 5aacafba8e53b3c17f00181e91418927d1c94efe (diff) |
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>
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/sshdump.c | 7 |
1 files changed, 1 insertions, 6 deletions
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) |