aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_aka.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-11-07 06:30:34 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-07 06:30:34 (GMT)
commitfa71a1d84a3e2d4ba4834ee9c3dd2d1b5c3f7d4d (patch)
tree11ad66c23e4f3c27cdea0d91b043809f0a6c968b /src/eap_peer/eap_aka.c
parent36100718de3a7a68be8c36128ffc0dbc949b500c (diff)
downloadhostap-06-fa71a1d84a3e2d4ba4834ee9c3dd2d1b5c3f7d4d.zip
hostap-06-fa71a1d84a3e2d4ba4834ee9c3dd2d1b5c3f7d4d.tar.gz
hostap-06-fa71a1d84a3e2d4ba4834ee9c3dd2d1b5c3f7d4d.tar.bz2
Fixed EAP-AKA RES Length field in AT_RES as length in bits, not bytes
Diffstat (limited to 'src/eap_peer/eap_aka.c')
-rw-r--r--src/eap_peer/eap_aka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_peer/eap_aka.c b/src/eap_peer/eap_aka.c
index 0d3937a..d8f07f6 100644
--- a/src/eap_peer/eap_aka.c
+++ b/src/eap_peer/eap_aka.c
@@ -472,7 +472,7 @@ static struct wpabuf * eap_aka_response_challenge(struct eap_aka_data *data,
msg = eap_sim_msg_init(EAP_CODE_RESPONSE, id, EAP_TYPE_AKA,
EAP_AKA_SUBTYPE_CHALLENGE);
wpa_printf(MSG_DEBUG, " AT_RES");
- eap_sim_msg_add(msg, EAP_SIM_AT_RES, data->res_len,
+ eap_sim_msg_add(msg, EAP_SIM_AT_RES, data->res_len * 8,
data->res, data->res_len);
eap_aka_add_checkcode(data, msg);
if (data->use_result_ind) {