mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
hostapd: Clear location configuration when it is reset
In case that LCI or location civic configuration is cleared, free the buffer holding the corresponding information to avoid cases that the information is considered as valid/useful. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
f5ec346902
commit
5cb59370d5
@ -3493,9 +3493,17 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
|||||||
} else if (os_strcmp(buf, "lci") == 0) {
|
} else if (os_strcmp(buf, "lci") == 0) {
|
||||||
wpabuf_free(conf->lci);
|
wpabuf_free(conf->lci);
|
||||||
conf->lci = wpabuf_parse_bin(pos);
|
conf->lci = wpabuf_parse_bin(pos);
|
||||||
|
if (conf->lci && wpabuf_len(conf->lci) == 0) {
|
||||||
|
wpabuf_free(conf->lci);
|
||||||
|
conf->lci = NULL;
|
||||||
|
}
|
||||||
} else if (os_strcmp(buf, "civic") == 0) {
|
} else if (os_strcmp(buf, "civic") == 0) {
|
||||||
wpabuf_free(conf->civic);
|
wpabuf_free(conf->civic);
|
||||||
conf->civic = wpabuf_parse_bin(pos);
|
conf->civic = wpabuf_parse_bin(pos);
|
||||||
|
if (conf->civic && wpabuf_len(conf->civic) == 0) {
|
||||||
|
wpabuf_free(conf->civic);
|
||||||
|
conf->civic = NULL;
|
||||||
|
}
|
||||||
} else if (os_strcmp(buf, "rrm_neighbor_report") == 0) {
|
} else if (os_strcmp(buf, "rrm_neighbor_report") == 0) {
|
||||||
if (atoi(pos))
|
if (atoi(pos))
|
||||||
bss->radio_measurements[0] |=
|
bss->radio_measurements[0] |=
|
||||||
|
Loading…
Reference in New Issue
Block a user