From 9c9c8c68ff1a729711f1334267383edabd7bdf6c Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Sat, 30 Mar 2019 20:39:28 +0100 Subject: [PATCH] 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: 35932375272a ('cli: reuse connections in nmcli dev wifi con') https://github.com/NetworkManager/NetworkManager/pull/326 --- clients/cli/devices.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 04a8c9889..ad3a44c4d 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,