mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
TDLS: Tear down connection on malformed Setup Confirm
Otherwise the peer will erroneously assume we have a working direct link. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
This commit is contained in:
parent
81905409b5
commit
bcd2baa0fa
@ -2457,14 +2457,12 @@ skip_rsn:
|
|||||||
ret = wpa_tdls_enable_link(sm, peer);
|
ret = wpa_tdls_enable_link(sm, peer);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
wpa_printf(MSG_DEBUG, "TDLS: Could not enable link");
|
wpa_printf(MSG_DEBUG, "TDLS: Could not enable link");
|
||||||
wpa_tdls_do_teardown(
|
goto error;
|
||||||
sm, peer,
|
|
||||||
WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
error:
|
error:
|
||||||
wpa_tdls_disable_peer_link(sm, peer);
|
wpa_tdls_do_teardown(sm, peer, WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user