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>
This commit is contained in:
Baruch Siach 2012-06-16 20:30:28 +03:00 committed by Jouni Malinen
parent 4929898dab
commit 17706d1c76

View File

@ -2490,7 +2490,7 @@ int hostapd_set_iface(struct hostapd_config *conf,
if (hostapd_config_check(conf)) { if (hostapd_config_check(conf)) {
wpa_printf(MSG_ERROR, "Configuration check failed"); wpa_printf(MSG_ERROR, "Configuration check failed");
errors++; return -1;
} }
return 0; return 0;