Parcourir la source

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>
Baruch Siach il y a 12 ans
Parent
commit
17706d1c76
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      hostapd/config_file.c

+ 1 - 1
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;