mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Make wpa_compare_rsn_ie() handle missing IEs
This commit is contained in:
parent
1566ec4685
commit
d3ccead325
@ -675,6 +675,9 @@ int wpa_compare_rsn_ie(int ft_initial_assoc,
|
|||||||
const u8 *ie1, size_t ie1len,
|
const u8 *ie1, size_t ie1len,
|
||||||
const u8 *ie2, size_t ie2len)
|
const u8 *ie2, size_t ie2len)
|
||||||
{
|
{
|
||||||
|
if (ie1 == NULL || ie2 == NULL)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (ie1len == ie2len && os_memcmp(ie1, ie2, ie1len) == 0)
|
if (ie1len == ie2len && os_memcmp(ie1, ie2, ie1len) == 0)
|
||||||
return 0; /* identical IEs */
|
return 0; /* identical IEs */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user