cli: add missing NULL-check

Only the connection down operation is cancellable, the other actions are not.

Fixes: 73b560c215
This commit is contained in:
Lubomir Rintel 2017-01-29 12:17:43 +01:00
parent cc1491401f
commit 7399cf3b16

View file

@ -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 ();