From: Baruch Siach Date: Sat, 16 Jun 2012 17:30:28 +0000 (+0300) Subject: hostapd: Return error value on configuration check failure X-Git-Tag: hostap_2_0~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17706d1c7604c2beac6d33ff39ceccd63aa9a33a;p=thirdparty%2Fhostap.git hostapd: Return error value on configuration check failure Don't count errors since the number isn't used anyway. Signed-hostap: Baruch Siach --- 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;