wireshark/ui
Tomasz Moń 75a6897b0f Qt: Do not pass empty values for extcap boolflags
For extcap boolean flags inserted into arguments hash table, the key should
be the "call" option and value should be NULL.
extcap_add_arg_and_remove_cb() takes care of NULL values by simply
omitting them from generated argument list.

ws_pipe_spawn_async() appends arguments until either:
  * argument string is NULL
  * argument string points directly to NULL terminator (empty string)

This bug resulted in extcap arguments being "cut off" after the first
"boolflag" present in the commandline arugments. Because arugments hash
table is unordered the actual commandline passed to extcap depended on
the order in which options were changed in extcap configuration dialog.

Bug: 15586
Change-Id: I00f136d3b627064cbfb539b3429aa5e4aef319e1
Reviewed-on: https://code.wireshark.org/review/32848
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-04-15 04:17:27 +00:00
..
cli Fix -z hosts output if it's from a live capture. 2019-03-31 19:28:23 +00:00
macosx macOs: Fix build fix for tab view 2018-11-01 15:02:36 +00:00
qt Qt: Do not pass empty values for extcap boolflags 2019-04-15 04:17:27 +00:00
win32 Windows: Console log handler fixups. 2019-03-14 21:15:08 +00:00
CMakeLists.txt CMake: Replace PACKAGELIST magic 2019-01-20 11:50:10 +00:00
alert_box.c ui: add missing break. 2018-11-14 09:30:55 +00:00
alert_box.h
all_files_wildcard.h
capture.c Use a single wtap_rec and Buffer for an entire capture session. 2019-04-08 07:58:16 +00:00
capture.h Qt: Fix restart capture when using a ring buffer 2019-02-20 04:23:42 +00:00
capture_globals.h
capture_ui_utils.c Put the interface descrptions into the IDB when capturing to pcapng. 2018-08-13 04:37:00 +00:00
capture_ui_utils.h Move get_iface_display_name() to ui/iface_lists.c. 2018-08-13 02:02:59 +00:00
clopts_common.c Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
clopts_common.h Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
cmdarg_err.c Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
cmdarg_err.h Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
commandline.c Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
commandline.h Move more version-info-related stuff to version_info.c. 2018-12-13 03:16:13 +00:00
console.c Windows: Console log handler fixups. 2019-03-14 21:15:08 +00:00
console.h
decode_as_utils.c Accept protocol aliases in Decode As (-d tcp.port==4433,ssl) 2019-02-05 22:40:01 +00:00
decode_as_utils.h
dissect_opts.c Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
dissect_opts.h
export_object_ui.c Don't fall out of the loop on a write error. 2019-01-02 23:56:33 +00:00
export_object_ui.h No need to report "some files could not be saved". 2019-01-01 23:12:17 +00:00
export_pdu_ui_utils.c Clean up exp_pdu_open() API. 2018-12-19 06:59:09 +00:00
export_pdu_ui_utils.h
failure_message.c Move some command-line-oriented routines from wsutil to ui. 2019-01-01 02:07:06 +00:00
failure_message.h
file_dialog.c 1514 is a better initial Buffer size than 1500. 2019-04-06 21:04:02 +00:00
file_dialog.h
filter_files.c Qt: Add back pathLabel in some dialogs 2018-10-10 04:46:28 +00:00
filter_files.h Qt: Add back pathLabel in some dialogs 2018-10-10 04:46:28 +00:00
firewall_rules.c
firewall_rules.h
help_url.c Convert the FAQ to Asciidoctor and remove old help files. 2019-02-14 23:11:15 +00:00
help_url.h UI: Remove Win32 file dialog stuff specific to GTK 2018-11-10 07:42:44 +00:00
iface_lists.c Move get_iface_display_name() to ui/iface_lists.c. 2018-08-13 02:02:59 +00:00
iface_lists.h Get rid of unused routine. 2018-08-11 07:52:06 +00:00
iface_toolbar.c
iface_toolbar.h
io_graph_item.c Attempt to squelch a narrowing warning. 2018-09-09 19:55:17 +00:00
io_graph_item.h sharkd: add support for io graph. 2018-05-31 18:43:50 +00:00
language.c
language.h
last_open_dir.h
main_statusbar.h
mcast_stream.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
mcast_stream.h
packet_list_utils.c Qt: Enable "Resolve Names" for boolean without TFS 2018-08-22 03:58:16 +00:00
packet_list_utils.h
packet_range.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
packet_range.h Qt: fix use-after-free on error while saving exported packets 2018-05-25 12:49:50 +00:00
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c prefs,ui: properly migrate old filter expressions 2018-09-10 09:27:34 +00:00
preference_utils.h prefs,ui: properly migrate old filter expressions 2018-09-10 09:27:34 +00:00
profile.c
profile.h
progress_dlg.h
proto_hier_stats.c Use a common wtap_rec and Buffer for all packets. 2019-04-08 00:55:52 +00:00
proto_hier_stats.h
recent.c Avoid warnings about a format string being a variable. 2018-09-10 03:01:35 +00:00
recent.h Remove an unused recent setting. 2018-06-18 22:59:41 +00:00
recent_utils.h
rtp_media.c RTP: Code clean up 2018-06-19 15:05:12 +00:00
rtp_media.h
rtp_stream.c tshark/RTP: GUI dependency removed from register_tap_listener_rtpstream. As consequence of it a few functions were moved from ui/rtp_stream to ui/tap-rtp-common. 2018-06-22 05:35:43 +00:00
rtp_stream.h RTP: If multiple codecs are used in RTP stream flow, all are shown in codecs column 2018-06-28 00:46:39 +00:00
rtp_stream_id.c RTP: Encapsulation of comparsion of two rtpstreams 2018-06-20 08:26:31 +00:00
rtp_stream_id.h RTP: code cleanup 3 2018-06-23 10:03:54 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h
software_update.c
software_update.h
ssl_key_export.c Rename packet-ssl* to packet-tls* 2018-09-25 13:24:17 +00:00
ssl_key_export.h
summary.c Try to squeeze some bytes out of the frame_data structure. 2018-12-27 04:34:29 +00:00
summary.h Use an enum for compression types in various interfaces. 2018-11-16 09:20:36 +00:00
tap-iax2-analysis.c
tap-iax2-analysis.h RTP: Code clean up 2018-06-19 15:05:12 +00:00
tap-rlc-graph.c Revert "Get rid of the per-capture_file wtap_rec and Buffer." 2019-04-06 20:00:57 +00:00
tap-rlc-graph.h
tap-rtp-analysis.c Calculate RTP delta time even if clock rate is unknown. 2018-08-21 04:06:27 +00:00
tap-rtp-analysis.h RTP: Code cleanup 2 2018-06-20 13:19:46 +00:00
tap-rtp-common.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
tap-rtp-common.h Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
tap-sctp-analysis.c Add a "failed" return for tap packet routines. 2019-01-01 05:03:42 +00:00
tap-sctp-analysis.h Qt: fix several crashes in the SCTP Dialogs 2018-08-20 05:01:11 +00:00
tap-tcp-stream.c Revert "Get rid of the per-capture_file wtap_rec and Buffer." 2019-04-06 20:00:57 +00:00
tap-tcp-stream.h
tap_export_pdu.c wiretap: fix memleaks with wtap_rec::opt_comment 2019-01-25 04:53:10 +00:00
tap_export_pdu.h Clean up exp_pdu_open() API. 2018-12-19 06:59:09 +00:00
taps.h
text_import.c Clean up comments and white space. 2019-03-20 16:45:22 +00:00
text_import.h Text Import: update code comments and help texts 2019-01-21 21:03:49 +00:00
text_import_scanner.h Put back EOF rule, but without exporting write_current_packet(). 2019-03-20 16:06:57 +00:00
text_import_scanner.l Put back EOF rule, but without exporting write_current_packet(). 2019-03-20 16:06:57 +00:00
time_shift.c TimeShiftDialog should be considered an "edit" operation 2018-12-21 13:59:32 +00:00
time_shift.h
traffic_table_ui.c Don't cast away constness if you don't have to. 2019-03-17 22:10:10 +00:00
traffic_table_ui.h Re-implement "Map" feature for Endpoints 2019-02-16 21:11:12 +00:00
util.c
util.h
voip_calls.c Don't cast away constness if you don't have to. 2019-03-17 22:12:29 +00:00
voip_calls.h RTP: code cleanup 3 2018-06-23 10:03:54 +00:00
ws_ui_util.h