Fix comparison between signed/unsigned warning for real

This commit is contained in:
Michael Stapelberg 2015-09-25 11:05:51 +02:00
parent b8b07511b1
commit 06a133135f

View File

@ -125,7 +125,7 @@ static void find_ssid(uint8_t *ies, uint32_t ies_len, uint8_t **ssid, uint32_t *
}
if (ies_len < 2)
return;
if (ies_len < 2 + (uint8_t)ies[1])
if (ies_len < (uint32_t)(2 + ies[1]))
return;
*ssid_len = ies[1];