mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
DPP: Fix error path handling for GAS Comeback Response building
A local memory allocation failuring during GAS Comeback Response frame generation could result in freeing the response context without removing it from the list. This would result in dereferencing freed memory when processing the next comeback request. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c7896ef9c6
commit
11f07f027a
@ -260,6 +260,7 @@ gas_server_handle_rx_comeback_req(struct gas_server_response *response)
|
||||
handler->adv_proto_id_len +
|
||||
resp_frag_len);
|
||||
if (!resp) {
|
||||
dl_list_del(&response->list);
|
||||
gas_server_free_response(response);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user