mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-19 18:43:03 -05:00
nl80211: Fix a copy-paste error in key offload management
Commit b41f26845aaa7cf8aed6e4889e7041debc476ef9 ('Add support for offloading key management operations to the driver') used incorrect variable for determining the KCK length. This does not get triggered in normal use cases since KCK and KEK are always included and of the same length (in currently supported key management cases). Anyway, this needs to be fixed to check the correct attribute. (CID 74491) Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
7d597d4617
commit
10bbe8b8ed
@ -304,7 +304,7 @@ static void mlme_event_connect(struct wpa_driver_nl80211_data *drv,
|
||||
}
|
||||
if (ptk_kck) {
|
||||
event.assoc_info.ptk_kck = nla_data(ptk_kck);
|
||||
event.assoc_info.ptk_kck_len = nla_len(ptk_kek);
|
||||
event.assoc_info.ptk_kck_len = nla_len(ptk_kck);
|
||||
}
|
||||
if (ptk_kek) {
|
||||
event.assoc_info.ptk_kek = nla_data(ptk_kek);
|
||||
|
Loading…
x
Reference in New Issue
Block a user