mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
RRM: Fix a memory leak in beacon request handling
Free the pending frequency list if a second beacon request is received before the scan for the previous one has been completed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
401243b73e
commit
4d70b2a4e5
@ -1032,6 +1032,7 @@ wpas_rm_handle_beacon_req(struct wpa_supplicant *wpa_s,
|
||||
elems_len = len - sizeof(*req);
|
||||
rand_interval = le_to_host16(req->rand_interval);
|
||||
|
||||
os_free(params->freqs);
|
||||
os_memset(params, 0, sizeof(*params));
|
||||
|
||||
data->token = elem_token;
|
||||
|
Loading…
Reference in New Issue
Block a user