aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-10-27 23:41:57 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-27 23:41:57 (GMT)
commit10bbe8b8edd2343589dc0c75c010d3f9858f8724 (patch)
treee1e6b04bb4628fe222fd8b3f6bd15fc98ad35481 /src
parent7d597d461777cd9af5d49dd678e29d0d400c27e1 (diff)
downloadhostap-10bbe8b8edd2343589dc0c75c010d3f9858f8724.zip
hostap-10bbe8b8edd2343589dc0c75c010d3f9858f8724.tar.gz
hostap-10bbe8b8edd2343589dc0c75c010d3f9858f8724.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/driver_nl80211_event.c b/src/drivers/driver_nl80211_event.c
index 7ba8168..4523366 100644
--- a/src/drivers/driver_nl80211_event.c
+++ b/src/drivers/driver_nl80211_event.c
@@ -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);