]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Verify that assoc req IEs are available for group update
authorJouni Malinen <j@w1.fi>
Sun, 13 Nov 2011 20:33:32 +0000 (22:33 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 13 Nov 2011 20:33:32 +0000 (22:33 +0200)
Do not call p2p_group_notif_assoc() if the driver did not return
IEs from the association request.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/drv_callbacks.c

index 142ceb7cd00d8fb9200bb86c6f73b15668c63a23..3b6c57c4564c98e796a0d4b6a795aa54d2edc38a 100644 (file)
@@ -203,8 +203,10 @@ skip_wpa_check:
        ieee802_1x_notify_port_enabled(sta->eapol_sm, 1);
 
 #ifdef CONFIG_P2P
-       p2p_group_notif_assoc(hapd->p2p_group, sta->addr,
-                             req_ies, req_ies_len);
+       if (req_ies) {
+               p2p_group_notif_assoc(hapd->p2p_group, sta->addr,
+                                     req_ies, req_ies_len);
+       }
 #endif /* CONFIG_P2P */
 
        return 0;