diff --git a/src/sae.c b/src/sae.c index b0ebe8e8..32a1ca8d 100644 --- a/src/sae.c +++ b/src/sae.c @@ -91,7 +91,7 @@ static bool sae_pwd_seed(const uint8_t *addr1, const uint8_t *addr2, } return hkdf_extract(L_CHECKSUM_SHA256, key, 12, 2, out, base, base_len, - &counter, 1); + &counter, (size_t) 1); } static struct l_ecc_scalar *sae_pwd_value(const struct l_ecc_curve *curve,