mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 16:54:04 -05:00
GAS: Fix memory leak on some DPP error paths
One of the code paths left behind a response buffer. Free this properly on this missed code path as well. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
29ff74aef0
commit
e4adbacafd
@ -96,8 +96,10 @@ gas_server_send_resp(struct gas_server *gas, struct gas_server_handler *handler,
|
||||
size_t resp_frag_len;
|
||||
struct wpabuf *resp;
|
||||
|
||||
if (comeback_delay == 0 && !query_resp)
|
||||
if (comeback_delay == 0 && !query_resp) {
|
||||
gas_server_free_response(response);
|
||||
return;
|
||||
}
|
||||
|
||||
response->freq = freq;
|
||||
response->handler = handler;
|
||||
|
Loading…
Reference in New Issue
Block a user