mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-12 13:50:30 +01:00
cli: fix reference count handling in hotspot error path
The connection is automatically unreferenced when the function returns. Fixes:9c5ea0917d('devices: reuse the hotspot connection if we find appropriate one'): (cherry picked from commit3ecfd13ded) (cherry picked from commit26f1074d9d)
This commit is contained in:
parent
45ad1c1e85
commit
6281e32875
1 changed files with 0 additions and 1 deletions
|
|
@ -4174,7 +4174,6 @@ do_device_wifi_hotspot (const NMCCommand *cmd, NmCli *nmc, int argc, const char
|
|||
g_return_if_fail (s_wsec);
|
||||
|
||||
if (!set_wireless_security_for_hotspot (s_wsec, wifi_mode, caps, password, show_password, &error)) {
|
||||
g_object_unref (connection);
|
||||
g_string_printf (nmc->return_text, _("Error: Invalid 'password': %s."), error->message);
|
||||
g_clear_error (&error);
|
||||
nmc->return_value = NMC_RESULT_ERROR_UNKNOWN;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue