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
1 changed files with 3 additions and 0 deletions

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)