NetworkManager/clients/cli
Francesco Giudici 77e1304f73 nmcli: avoid calling twice "check_activated()" on "nmcli connection up"
This happens when the connection is in "activating" state and
the connection is a master one waiting for slaves: "check_activated()"
is called by the active_connection_state_cb() and device_state_cb() callbacks.

If the device has already moved to a state >= NM_DEVICE_STATE_IP_CONFIG, the
call to active_connection_state_cb() will end calling
activate_connection_info_finish(), freeing the "info" object. The subsequent
call to device_state_cb() will result in accessing the freed "info".

Just call check_activated() once after registering the
active_connection_state() and device_state_cb() callbacks.

(cherry picked from commit 3d4d1bedda)
2017-04-05 16:04:21 +02:00
..
agent.c cli: use nmc_do_cmd to get the client and check if the daemon is running 2016-11-11 16:18:03 +01:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: use next_arg() on argument boundary 2017-03-28 15:32:05 +02:00
common.h cli: support route options 2017-03-06 15:20:25 +01:00
connections.c nmcli: avoid calling twice "check_activated()" on "nmcli connection up" 2017-04-05 16:04:21 +02:00
connections.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
devices.c nmcli: fix nmcli parsing 2017-03-29 14:25:48 +02:00
devices.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
general.c nmcli: fix nmcli parsing 2017-03-29 14:25:48 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c nmcli: fix nmcli parsing 2017-03-29 14:25:48 +02:00
nmcli.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
polkit-agent.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c nmcli: always print "--" for empty or unset values in normal/pretty output 2017-03-28 10:55:00 +02:00
settings.h cli: support dummy connections 2017-02-22 21:05:04 +01:00
utils.c nmcli: fix nmcli connection edit 2017-03-29 11:37:15 +02:00
utils.h cli: add NmCli argument to next_arg() 2017-03-28 15:32:05 +02:00