mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
TDLS: Fix TPK M1 error case (CID 68214)
Commit 342bce63cd
introduced a possibility
of a NULL pointer dereference on the error path if a new peer entry
fails to get added (i.e., memory allocation failure). Fix that by
skipping the wpa_tdls_peer_free() call if necessary.
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
d1bb7aeda4
commit
7efc7f66b1
@ -1920,6 +1920,7 @@ skip_rsn_check:
|
||||
error:
|
||||
wpa_tdls_send_error(sm, src_addr, WLAN_TDLS_SETUP_RESPONSE, dtoken,
|
||||
status);
|
||||
if (peer)
|
||||
wpa_tdls_peer_free(sm, peer);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user