mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 10:48:02 +02: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
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue