cli: fix a crash on "nmcli d wifi hotspot"
Call the correct _finish() function for
nm_client_add_and_activate_connection_async(). add_and_activate_cb()
somewhat confusingly alternates between two different ones depending on
whether info->create is set.
Fixes: 3593237527
('cli: reuse connections in nmcli dev wifi con')
https://github.com/NetworkManager/NetworkManager/pull/326
This commit is contained in:
@@ -3888,6 +3888,7 @@ do_device_wifi_hotspot (NmCli *nmc, int argc, char **argv)
|
|||||||
info->nmc = nmc;
|
info->nmc = nmc;
|
||||||
info->device = device;
|
info->device = device;
|
||||||
info->hotspot = TRUE;
|
info->hotspot = TRUE;
|
||||||
|
info->create = TRUE;
|
||||||
|
|
||||||
nm_client_add_and_activate_connection_async (nmc->client,
|
nm_client_add_and_activate_connection_async (nmc->client,
|
||||||
connection,
|
connection,
|
||||||
|
Reference in New Issue
Block a user