Split hostapd_interface_deinit() into deinit and free parts
This allows the driver interface to be deinitialized before struct hostapd_data instance gets freed. This needs to be done so that the driver wrapper does not maintain a context pointer to freed memory.
This commit is contained in:
parent
f78feb6a72
commit
f7c4783379
4 changed files with 24 additions and 17 deletions
|
@ -223,6 +223,7 @@ void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
|
|||
return;
|
||||
|
||||
hostapd_interface_deinit(wpa_s->ap_iface);
|
||||
hostapd_interface_free(wpa_s->ap_iface);
|
||||
wpa_s->ap_iface = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue