Dan reported that my previous patch did not follow existing practices. So replacing leading whitespaces with tabs. Signed-off-by: Mohit Sethi <mohit.sethi@xxxxxxxx> --- src/eap_peer/eap_aka.c | 4 ++-- src/eap_peer/eap_sim.c | 4 ++-- src/eap_server/eap_server_aka.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/eap_peer/eap_aka.c b/src/eap_peer/eap_aka.c index 6d10b5f..c5212de 100644 --- a/src/eap_peer/eap_aka.c +++ b/src/eap_peer/eap_aka.c @@ -1232,8 +1232,8 @@ static struct wpabuf * eap_aka_process_reauthentication( * Peer does not use local MAC but received MAC * in deriving Session-Id */ os_memset(data->reauth_mac, 0, EAP_SIM_MAC_LEN); - os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); - wpa_hexdump(MSG_DEBUG, "EAP-SIM: Server MAC", + os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); + wpa_hexdump(MSG_DEBUG, "EAP-SIM: Server MAC", data->reauth_mac, EAP_SIM_MAC_LEN); if (attr->encr_data == NULL || attr->iv == NULL) { diff --git a/src/eap_peer/eap_sim.c b/src/eap_peer/eap_sim.c index 3b09ee2..32aaea9 100644 --- a/src/eap_peer/eap_sim.c +++ b/src/eap_peer/eap_sim.c @@ -964,8 +964,8 @@ static struct wpabuf * eap_sim_process_reauthentication( * Peer does not use local MAC but received MAC * in deriving Session-Id */ os_memset(data->reauth_mac, 0, EAP_SIM_MAC_LEN); - os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); - wpa_hexdump(MSG_DEBUG, "EAP-SIM: Server MAC", data->reauth_mac, + os_memcpy(data->reauth_mac, attr->mac, EAP_SIM_MAC_LEN); + wpa_hexdump(MSG_DEBUG, "EAP-SIM: Server MAC", data->reauth_mac, EAP_SIM_MAC_LEN); if (attr->encr_data == NULL || attr->iv == NULL) { diff --git a/src/eap_server/eap_server_aka.c b/src/eap_server/eap_server_aka.c index 14ef999..fa3b808 100644 --- a/src/eap_server/eap_server_aka.c +++ b/src/eap_server/eap_server_aka.c @@ -589,7 +589,7 @@ static struct wpabuf * eap_aka_build_reauth(struct eap_sm *sm, * Session-Id calculation after receiving response peer and after all * other checks pass. */ os_memset(data->reauth_mac, 0, EAP_SIM_MAC_LEN); - os_memcpy(data->reauth_mac, buf->buf + (int) (wpabuf_len(buf) - + os_memcpy(data->reauth_mac, buf->buf + (int) (wpabuf_len(buf) - EAP_SIM_MAC_LEN), EAP_SIM_MAC_LEN); return buf; -- 2.7.4 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap