netdev: fix return value check for ft_over_ds_parse_action_ies

This returns a bool but was being treated as a signed int.
This commit is contained in:
James Prestwood 2021-09-27 15:41:35 -07:00 committed by Denis Kenzior
parent 2613564093
commit 8db2f442bc
1 changed files with 2 additions and 3 deletions

View File

@ -4194,9 +4194,8 @@ static void netdev_ft_response_frame_event(const struct mmpdu_header *hdr,
goto ft_error;
}
ret = ft_over_ds_parse_action_ies(&info->super, netdev->handshake,
ies, ies_len);
if (ret < 0)
if (!ft_over_ds_parse_action_ies(&info->super, netdev->handshake,
ies, ies_len))
goto ft_error;
info->parsed = true;