commit 8db2f442bc9951a43fe183efda313127a8f325d6
parent 26135640933bdbd3623eb421c30a16b11cdb3ee9
Author: James Prestwood <prestwoj@gmail.com>
Date: Mon, 27 Sep 2021 15:41:35 -0700
netdev: fix return value check for ft_over_ds_parse_action_ies
This returns a bool but was being treated as a signed int.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/netdev.c b/src/netdev.c
@@ -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;