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:
Lubomir Rintel
2019-03-30 20:39:28 +01:00
parent 23d8a4f230
commit 9c9c8c68ff

View File

@@ -3888,6 +3888,7 @@ do_device_wifi_hotspot (NmCli *nmc, int argc, char **argv)
info->nmc = nmc;
info->device = device;
info->hotspot = TRUE;
info->create = TRUE;
nm_client_add_and_activate_connection_async (nmc->client,
connection,