hostapd: Fix couple of deinit path cases to clear pointers
This fixes some issues where dynamic interface enable/disable cycles could end up trying to free resources twice and crash the process while doing so. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f18b7817ec
commit
66f4dd1550
2 changed files with 2 additions and 0 deletions
|
@ -1021,6 +1021,7 @@ void vlan_deinit(struct hostapd_data *hapd)
|
||||||
|
|
||||||
#ifdef CONFIG_FULL_DYNAMIC_VLAN
|
#ifdef CONFIG_FULL_DYNAMIC_VLAN
|
||||||
full_dynamic_vlan_deinit(hapd->full_dynamic_vlan);
|
full_dynamic_vlan_deinit(hapd->full_dynamic_vlan);
|
||||||
|
hapd->full_dynamic_vlan = NULL;
|
||||||
#endif /* CONFIG_FULL_DYNAMIC_VLAN */
|
#endif /* CONFIG_FULL_DYNAMIC_VLAN */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -618,5 +618,6 @@ void hostapd_deinit_wpa(struct hostapd_data *hapd)
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211R
|
#ifdef CONFIG_IEEE80211R
|
||||||
l2_packet_deinit(hapd->l2);
|
l2_packet_deinit(hapd->l2);
|
||||||
|
hapd->l2 = NULL;
|
||||||
#endif /* CONFIG_IEEE80211R */
|
#endif /* CONFIG_IEEE80211R */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue