mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-24 23:00:38 +01:00
libnm-glib: zero 'secrets' to prevent crash getting secrets
If the GetSecrets call returned an error (eg, no secrets) then 'secrets' isn't set by dbus_g_proxy_end_call() and is garbage, then gets freed.
This commit is contained in:
parent
3eeeb9fe0d
commit
e922c120a3
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ get_secrets_cb (DBusGProxy *proxy, DBusGProxyCall *proxy_call, gpointer user_dat
|
|||
{
|
||||
RemoteCall *call = user_data;
|
||||
NMRemoteConnectionGetSecretsFunc func = (NMRemoteConnectionGetSecretsFunc) call->callback;
|
||||
GHashTable *secrets;
|
||||
GHashTable *secrets = NULL;
|
||||
GError *error = NULL;
|
||||
|
||||
dbus_g_proxy_end_call (proxy, proxy_call, &error,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue