aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-19 13:28:56 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-19 13:28:56 (GMT)
commit7e8bc7d6fb322d7b3d37211462bf956edc910537 (patch)
treee3db5ecae299668b9e7d003a678fcbf116415415
parentbceb843108f92fdea51d9cf7a2f7f03758cbdf10 (diff)
downloadhostap-7e8bc7d6fb322d7b3d37211462bf956edc910537.zip
hostap-7e8bc7d6fb322d7b3d37211462bf956edc910537.tar.gz
hostap-7e8bc7d6fb322d7b3d37211462bf956edc910537.tar.bz2
eapol_test: Initialize BSS lists
This is needed to avoid issues with control interface commands that could request BSS list during an eapol_test run. wpa_cli tries to update its internal BSS list and that could trigger eapol_test crashes without this. Signed-hostap: Jouni Malinen <j@w1.fi>
-rw-r--r--wpa_supplicant/eapol_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c
index 3fbc3f4..0806e9c 100644
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -1285,6 +1285,8 @@ int main(int argc, char *argv[])
os_memset(&wpa_s, 0, sizeof(wpa_s));
wpa_s.global = &global;
eapol_test.wpa_s = &wpa_s;
+ dl_list_init(&wpa_s.bss);
+ dl_list_init(&wpa_s.bss_id);
wpa_s.conf = wpa_config_read(conf, NULL);
if (wpa_s.conf == NULL) {
printf("Failed to parse configuration file '%s'.\n", conf);