forked from osmocom/wireshark
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:
parent
a082ba9dae
commit
b7066e0819
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue