summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-03-30 20:39:28 +0100
committerLubomir Rintel <lkundrak@v3.sk>2019-03-31 14:28:08 +0200
commit810343b2470a558711074e324926056fec38d5b4 (patch)
tree44fdb665227e9900d144e362adefde89b82b9523
parentee39f3ab79b3f615285ffbe2cece66ad1205d96a (diff)
downloadNetworkManager-lr/hotspot-cli-crash.tar.gz
cli: fix a crash on "nmcli d wifi hotspot"lr/hotspot-cli-crash
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: 35932375272a ('cli: reuse connections in nmcli dev wifi con')
-rw-r--r--clients/cli/devices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c
index 04a8c98891..ad3a44c4de 100644
--- a/clients/cli/devices.c
+++ b/clients/cli/devices.c
@@ -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,