EAP-SIM server: Avoid void pointer arithmetic
This is a compiler specific extension and not compliant with the C
standard.
Fixes: 1c16b257a0
("EAP-SIM: Add Session-Id derivation during fast-reauth")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
cfc9ebea03
commit
fe2e1edf43
1 changed files with 1 additions and 1 deletions
|
@ -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
|
* Session-Id calculation after receiving response from the peer and
|
||||||
* after all other checks pass. */
|
* after all other checks pass. */
|
||||||
os_memcpy(data->reauth_mac,
|
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);
|
EAP_SIM_MAC_LEN);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|
Loading…
Reference in a new issue