Fix pno_start() to initialize SSID list properly

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
Dmitry Shmidt 2011-11-29 12:56:32 +02:00 committed by Jouni Malinen
parent 0b7a25c00f
commit d70b945d4d

View file

@ -85,6 +85,7 @@ static int pno_start(struct wpa_supplicant *wpa_s)
if (params.filter_ssids == NULL) if (params.filter_ssids == NULL)
return -1; return -1;
i = 0; i = 0;
ssid = wpa_s->conf->ssid;
while (ssid) { while (ssid) {
if (!ssid->disabled) { if (!ssid->disabled) {
params.ssids[i].ssid = ssid->ssid; params.ssids[i].ssid = ssid->ssid;