Fix use after free with hapd->time_adv on interface restart
When an interface is disabled, e.g. due to radar detected,
hapd->time_adv is freed by hostapd_free_hapd_data(), but later
used by ieee802_11_build_ap_params() calling hostapd_eid_time_adv().
Thus hapd->time_adv needs to be cleared as well.
Fixes: 39b97072b2
("Add support for Time Advertisement")
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
48e2725f5a
commit
2da3105ac1
1 changed files with 1 additions and 0 deletions
|
@ -414,6 +414,7 @@ void hostapd_free_hapd_data(struct hostapd_data *hapd)
|
|||
}
|
||||
|
||||
wpabuf_free(hapd->time_adv);
|
||||
hapd->time_adv = NULL;
|
||||
|
||||
#ifdef CONFIG_INTERWORKING
|
||||
gas_serv_deinit(hapd);
|
||||
|
|
Loading…
Reference in a new issue