mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
TDLS: Fix error path for TPK M1 send failure in testing functionality
The previous fix did not actually address this testing functionality
case correctly. Clear the peer pointer to avoid double freeing.
Fixes: a86078c876
("TDLS: Fix error path handling for TPK M1 send failures")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
a9fed5f5b5
commit
05962099c3
@ -1926,9 +1926,11 @@ static int wpa_tdls_process_tpk_m1(struct wpa_sm *sm, const u8 *src_addr,
|
||||
peer->initiator = 1;
|
||||
wpa_sm_tdls_peer_addset(sm, peer->addr, 1, 0, 0, NULL, 0, NULL,
|
||||
NULL, 0, 0, NULL, 0, NULL, 0, NULL, 0);
|
||||
if (wpa_tdls_send_tpk_m1(sm, peer) == -2)
|
||||
if (wpa_tdls_send_tpk_m1(sm, peer) == -2) {
|
||||
peer = NULL;
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
if ((tdls_testing & TDLS_TESTING_IGNORE_AP_PROHIBIT) &&
|
||||
tdls_prohibited) {
|
||||
|
Loading…
Reference in New Issue
Block a user