mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 11:18:28 +02:00
manager: fix failed assertion on user activations
We can't use g_steal_pointer(&active) in the argument list if another
argument uses @active because the order of evaluation is not defined.
This fixes the following bug:
src/nm-manager.c:511:_async_op_complete_ac_auth_cb: assertion failed: (active == async_op_data->ac_auth.active)
Fixes: f4fc62bad8
https://bugzilla.redhat.com/show_bug.cgi?id=1585494
This commit is contained in:
parent
3fb4eed3ef
commit
7696e6c1fa
1 changed files with 5 additions and 1 deletions
|
|
@ -4747,12 +4747,16 @@ impl_manager_activate_connection (NMDBusObject *obj,
|
|||
if (!active)
|
||||
goto error;
|
||||
|
||||
nm_active_connection_authorize (g_steal_pointer (&active),
|
||||
nm_active_connection_authorize (active,
|
||||
NULL,
|
||||
_async_op_complete_ac_auth_cb,
|
||||
_async_op_data_new_ac_auth_activate_user (self,
|
||||
active,
|
||||
invocation));
|
||||
|
||||
/* we passed the pointer on to _async_op_data_new_ac_auth_activate_user() */
|
||||
g_steal_pointer (&active);
|
||||
|
||||
return;
|
||||
|
||||
error:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue