summaryrefslogtreecommitdiff
path: root/extcap
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-11-02 14:15:41 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-11-02 19:36:39 +0000
commit9e2a9d0eaf4abe10c4f5af3302695aac7d745583 (patch)
tree191a0e9beb8615c2db3f0620c3a4b0641e9104a5 /extcap
parentc8dd84064df6bf40f525bed4d58cacc584d906b8 (diff)
downloadwireshark-9e2a9d0eaf4abe10c4f5af3302695aac7d745583.tar.gz
sshdump: use g_shell_quote in the right way.
Change-Id: I3f71dabe92d3b00192f36fc57ebb7673b2327620 Reviewed-on: https://code.wireshark.org/review/18623 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/sshdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c
index e4f884c646..f8199db80b 100644
--- a/extcap/sshdump.c
+++ b/extcap/sshdump.c
@@ -154,7 +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);
- quoted_filter = (cfilter ? g_shell_quote(cfilter) : "");
+ quoted_filter = g_shell_quote(cfilter ? cfilter : "");
if (count > 0)
count_str = g_strdup_printf("-c %u", count);