mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 04:40:13 +01:00
libnm: fix take ownership of floating argument in NMSecretAgentOld:get_secrets_cb()
The previous patch9ffcecf86awas completely wrong. It tried to fix callers that provided a floating GVariant reference. We require the caller to unref @secrets, so the correct fix it to ensure that the reference is not floating. Fixes:6793a32a8c(cherry picked from commit9ffcecf86a) (cherry picked from commit2071e4794f)
This commit is contained in:
parent
e9e032bd51
commit
6099378bc6
1 changed files with 1 additions and 0 deletions
|
|
@ -301,6 +301,7 @@ get_secrets_cb (NMSecretAgentOld *self,
|
|||
if (error)
|
||||
g_dbus_method_invocation_return_gerror (info->context, error);
|
||||
else {
|
||||
g_variant_take_ref (secrets);
|
||||
g_dbus_method_invocation_return_value (info->context,
|
||||
g_variant_new ("(@a{sa{sv}})", secrets));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue