aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-05-30 17:40:11 (GMT)
committerJouni Malinen <j@w1.fi>2014-05-30 17:40:11 (GMT)
commit5d67bf1566d22542e95c90c9394e372184b0831f (patch)
tree928ceef08d73af82cb6650e63acb346212549b71 /hostapd
parent6a188ba3fc2b0f974419b35ae2f627932fcd8b02 (diff)
downloadhostap-5d67bf1566d22542e95c90c9394e372184b0831f.zip
hostap-5d67bf1566d22542e95c90c9394e372184b0831f.tar.gz
hostap-5d67bf1566d22542e95c90c9394e372184b0831f.tar.bz2
hostapd: Fix configuration of multiple RADIUS servers with SET
The current RADIUS server pointer was updated after each SET command which broke parsing of multiple RADIUS servers over the control interface. Fix this by doing the final RADIUS server pointer updates only once the full configuration is available. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index caf51a9..be40398 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3238,7 +3238,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
fclose(f);
for (i = 0; i < conf->num_bss; i++)
- hostapd_set_security_params(conf->bss[i]);
+ hostapd_set_security_params(conf->bss[i], 1);
if (hostapd_config_check(conf, 1))
errors++;
@@ -3270,7 +3270,7 @@ int hostapd_set_iface(struct hostapd_config *conf,
}
for (i = 0; i < conf->num_bss; i++)
- hostapd_set_security_params(conf->bss[i]);
+ hostapd_set_security_params(conf->bss[i], 0);
if (hostapd_config_check(conf, 0)) {
wpa_printf(MSG_ERROR, "Configuration check failed");