[PATCH 2/2] hostapd: return error value on configuration check failure
Baruch Siach
baruch
Tue Jun 12 21:08:53 PDT 2012
Don't count errors since the number isn't used anyway.
Signed-hostap: Baruch Siach <baruch at tkos.co.il>
---
hostapd/config_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.7.10
More information about the Hostap
mailing list