aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Prestwood <prestwoj@gmail.com>2020-03-16 12:22:40 -0700
committerDenis Kenzior <denkenz@gmail.com>2020-03-13 23:52:26 -0500
commitaf5c77aeba3357d2ff016cfcb4b068acfc285b3f (patch)
treed63845d41231aef791b79ae9ff316a25549c92ec
parent37886066d8c6ab1e64ae158f1b6aa698b057f290 (diff)
downloadiwd-af5c77aeba3357d2ff016cfcb4b068acfc285b3f.tar.gz
test-runner: fix crash for tests using radius_server
Tests which use a standalone RADIUS server may crash due to the wiphy array not taking into account the 'radius_server' key which is skipped during setup.
-rw-r--r--tools/test-runner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-runner.c b/tools/test-runner.c
index 42bd60e21..1f0bc4dd2 100644
--- a/tools/test-runner.c
+++ b/tools/test-runner.c
@@ -1373,7 +1373,7 @@ static bool configure_hostapd_instances(struct l_settings *hw_settings,
hostapd_config_file_paths = l_new(char *, i + 1);
wiphys = alloca(sizeof(struct wiphy *) * (i + 1));
- wiphys[i] = NULL;
+ memset(wiphys, 0, sizeof(struct wiphy *) * (i + 1));
hostapd_pids_out[0] = -1;