3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

netdev: check for connected in FT frame event

This frame could come unsolicited and cause a NULL dereference
if IWD is not connected.
This commit is contained in:
James Prestwood 2022-04-05 11:21:40 -07:00 committed by Denis Kenzior
parent dc7e12ac0c
commit f7dc05969f

View File

@ -4525,6 +4525,9 @@ static void netdev_ft_response_frame_event(const struct mmpdu_header *hdr,
size_t ies_len;
struct ft_ds_finder finder;
if (!netdev->connected)
return;
ret = ft_over_ds_parse_action_response(body, body_len, &spa, &aa,
&ies, &ies_len);
if (ret < 0)