]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/commitdiff
P2P: Use consistent checking of ssid != NULL
authorJouni Malinen <j@w1.fi>
Fri, 15 Jul 2011 11:20:31 +0000 (14:20 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 15 Jul 2011 11:20:31 +0000 (14:20 +0300)
wpa_supplicant/p2p_supplicant.c

index 28dbbe686283a164bb8bc8a2042c2b06b7e6116a..f1b90cf232764fef07f35af95ba108e68f385233 100644 (file)
@@ -557,7 +557,7 @@ static void wpas_group_formation_completed(struct wpa_supplicant *wpa_s,
        if (persistent)
                network_id = wpas_p2p_store_persistent_group(wpa_s->parent,
                                                             ssid, go_dev_addr);
-       if (network_id < 0)
+       if (network_id < 0 && ssid)
                network_id = ssid->id;
        if (!client)
                wpas_notify_p2p_group_started(wpa_s, ssid, network_id, 0);