]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Return error value on configuration check failure
authorBaruch Siach <baruch@tkos.co.il>
Sat, 16 Jun 2012 17:30:28 +0000 (20:30 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 16 Jun 2012 17:30:28 +0000 (20:30 +0300)
Don't count errors since the number isn't used anyway.

Signed-hostap: Baruch Siach <baruch@tkos.co.il>

hostapd/config_file.c

index 65a53fe50539cf9535ef14ee183c258b570d58db..6729e5c1da974007398559055b1c97c461eebcff 100644 (file)
@@ -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;