aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2012-06-16 20:30:28 +0300
committerJouni Malinen <j@w1.fi>2012-06-16 20:30:28 +0300
commit17706d1c7604c2beac6d33ff39ceccd63aa9a33a (patch)
treef35ca2c4b597a8cc5e8f1127be73fe583442042a /hostapd
parent4929898dabf9d03b22ef3e64c1cfb5e2ab447806 (diff)
downloadexternal_wpa_supplicant_8_ti-17706d1c7604c2beac6d33ff39ceccd63aa9a33a.zip
external_wpa_supplicant_8_ti-17706d1c7604c2beac6d33ff39ceccd63aa9a33a.tar.gz
external_wpa_supplicant_8_ti-17706d1c7604c2beac6d33ff39ceccd63aa9a33a.tar.bz2
hostapd: Return error value on configuration check failure
Don't count errors since the number isn't used anyway. Signed-hostap: Baruch Siach <baruch@tkos.co.il>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 65a53fe..6729e5c 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2490,7 +2490,7 @@ int hostapd_set_iface(struct hostapd_config *conf,
if (hostapd_config_check(conf)) {
wpa_printf(MSG_ERROR, "Configuration check failed");
- errors++;
+ return -1;
}
return 0;