diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 65a53fe50..6729e5c1d 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;