eap-pwd: Remove unneeded cast

This commit is contained in:
Denis Kenzior 2019-01-31 12:41:58 -06:00
parent bb28351c93
commit c926b3fe80
1 changed files with 1 additions and 2 deletions

View File

@ -374,8 +374,7 @@ static void eap_pwd_handle_commit(struct eap_state *eap,
if (!pwd->element_s)
goto invalid_point;
pwd->scalar_s = l_ecc_scalar_new(pwd->curve,
(uint8_t *)pkt + (nbytes * 2), nbytes);
pwd->scalar_s = l_ecc_scalar_new(pwd->curve, pkt + nbytes * 2, nbytes);
pwd->p_rand = l_ecc_scalar_new_random(pwd->curve);
p_mask = l_ecc_scalar_new_random(pwd->curve);