mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
mesh: Fix segmentation fault by repeating MESH_GROUP_ADD/REMOVE
Signed-off-by: Natsuki Itaya <Natsuki.Itaya@jp.sony.com> Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
5cfb672dde
commit
eac0231642
@ -3475,9 +3475,13 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
|||||||
#endif /* CONFIG_AP */
|
#endif /* CONFIG_AP */
|
||||||
break;
|
break;
|
||||||
case EVENT_NEW_PEER_CANDIDATE:
|
case EVENT_NEW_PEER_CANDIDATE:
|
||||||
|
#ifdef CONFIG_MESH
|
||||||
|
if (!wpa_s->ifmsh || !data)
|
||||||
|
break;
|
||||||
wpa_mesh_notify_peer(wpa_s, data->mesh_peer.peer,
|
wpa_mesh_notify_peer(wpa_s, data->mesh_peer.peer,
|
||||||
data->mesh_peer.ies,
|
data->mesh_peer.ies,
|
||||||
data->mesh_peer.ie_len);
|
data->mesh_peer.ie_len);
|
||||||
|
#endif /* CONFIG_MESH */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
|
wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
|
||||||
|
Loading…
Reference in New Issue
Block a user