sshdump: Fix remote-capture-command option

The remote-capture-command option does not work when selecting
remote capture command selection 'other' from the extcap capture
options dialog. Fix strcmp statement to actually check for 'other'.

Fixes: #18381
This commit is contained in:
Mikael Kanstrup 2022-09-26 19:35:18 +02:00 committed by Mikael Kanstrup
parent a082ba9dae
commit b7066e0819
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static ssh_channel run_ssh_command(ssh_session sshs, const char* capture_command
ssh_options_get_port(sshs, &remote_port);
if (capture_command_select == NULL || g_strcmp0(capture_command_select, "other")) {
if (capture_command_select == NULL || !g_strcmp0(capture_command_select, "other")) {
if (capture_command && *capture_command) {
cmdline = g_strdup(capture_command);
ws_debug("Remote capture command has disabled other options");