mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 08:40:09 +01:00
cli: add missing NULL-check
Only the connection down operation is cancellable, the other actions are not. Fixes:73b560c215(cherry picked from commit7399cf3b16)
This commit is contained in:
parent
e0ed5a0c3f
commit
5d22a96d1d
1 changed files with 3 additions and 2 deletions
|
|
@ -2774,8 +2774,9 @@ connection_cb_info_finish (ConnectionCbInfo *info, gpointer connection)
|
|||
|
||||
if (info->timeout_id)
|
||||
g_source_remove (info->timeout_id);
|
||||
g_cancellable_cancel (info->cancellable);
|
||||
g_object_unref (info->cancellable);
|
||||
|
||||
nm_clear_g_cancellable (&info->cancellable);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (info->nmc->client, connection_removed_cb, info);
|
||||
g_slice_free (ConnectionCbInfo, info);
|
||||
quit ();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue