mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
wifi: robustify supplicant info destruction
Zero out the struct so we crash if we ever try to use it after its been freed.
This commit is contained in:
parent
5a01a0b39e
commit
009336a54c
|
@ -188,12 +188,17 @@ nm_supplicant_info_destroy (gpointer user_data)
|
|||
if (!info->disposing) {
|
||||
info->disposing = TRUE;
|
||||
|
||||
if (info->call)
|
||||
if (info->call) {
|
||||
nm_call_store_remove (info->store, G_OBJECT (info->proxy), info->call);
|
||||
info->call = NULL;
|
||||
}
|
||||
|
||||
g_object_unref (info->proxy);
|
||||
info->proxy = NULL;
|
||||
g_object_unref (info->interface);
|
||||
info->interface = NULL;
|
||||
|
||||
memset (info, 0, sizeof (NMSupplicantInfo));
|
||||
g_slice_free (NMSupplicantInfo, info);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue