aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_server_sim.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-07-24 16:35:14 (GMT)
committerJouni Malinen <j@w1.fi>2019-07-24 16:35:14 (GMT)
commitfe2e1edf431dddd299a87d74d65de12f20a25bf7 (patch)
treeb161974e90a4f20b00d04c0c36081702262cfa01 /src/eap_server/eap_server_sim.c
parentcfc9ebea03268e8ba8fc95b16e3e751295c5515e (diff)
downloadhostap-fe2e1edf431dddd299a87d74d65de12f20a25bf7.zip
hostap-fe2e1edf431dddd299a87d74d65de12f20a25bf7.tar.gz
hostap-fe2e1edf431dddd299a87d74d65de12f20a25bf7.tar.bz2
EAP-SIM server: Avoid void pointer arithmetic
This is a compiler specific extension and not compliant with the C standard. Fixes: 1c16b257a081 ("EAP-SIM: Add Session-Id derivation during fast-reauth") Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'src/eap_server/eap_server_sim.c')
-rw-r--r--src/eap_server/eap_server_sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_server/eap_server_sim.c b/src/eap_server/eap_server_sim.c
index 66a0872..f8aa508 100644
--- a/src/eap_server/eap_server_sim.c
+++ b/src/eap_server/eap_server_sim.c
@@ -286,7 +286,7 @@ static struct wpabuf * eap_sim_build_reauth(struct eap_sm *sm,
* Session-Id calculation after receiving response from the peer and
* after all other checks pass. */
os_memcpy(data->reauth_mac,
- wpabuf_head(buf) + wpabuf_len(buf) - EAP_SIM_MAC_LEN,
+ wpabuf_head_u8(buf) + wpabuf_len(buf) - EAP_SIM_MAC_LEN,
EAP_SIM_MAC_LEN);
return buf;