NetworkManager/clients
Thomas Haller fd9e7d6167
cli: fix accessing argv with zero elements in nmc_process_connection_properties()
Without this, `nmcli device modify "$DEVICE"` leads to a crash. At least
since commit c5d45848dd ('cli: mark argv argument for command line
parsing as const'), when this happens.

That is, because it passes a NULL strv array with argc being set to
zero. nmc_process_connection_properties() is not supposed to access
the array, if there are no elements there.

Fixes: c5d45848dd ('cli: mark argv argument for command line parsing as const')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/492
(cherry picked from commit 09c94bc24f)
2020-07-13 17:20:47 +02:00
..
cli cli: fix accessing argv with zero elements in nmc_process_connection_properties() 2020-07-13 17:20:47 +02:00
cloud-setup cloud-setup: fix nmcs_utils_poll argument ordering 2020-07-13 13:18:12 +02:00
common cli: fix alternating miimon/arp_interval settings for bond options in nmcli 2020-07-11 15:07:47 +02:00
tests all: reformat python files with python black 2020-06-15 16:40:38 +02:00
tui tui: fix default values for bond options in nmtui 2020-07-11 15:07:48 +02:00
meson.build docs: generate nm-settings-docs-nmcli.xml based on nmcli meta data 2020-06-11 10:53:50 +02:00
nm-online.c nm-online: allow configuring timeout via NM_ONLINE_TIMEOUT environment 2020-04-30 21:46:59 +02:00