From: Sujay Patwardhan Date: Mon, 26 Aug 2019 18:35:38 +0000 (-0700) Subject: wpa_supplicant: Don't return an error when successfully parsing WMM rules X-Git-Tag: hostap_2_10~2370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21dc1627f6e6b26986a70e81ffb5f08132656b09;p=thirdparty%2Fhostap.git wpa_supplicant: Don't return an error when successfully parsing WMM rules The config file parser previously would fall through into an error if CONFIG_AP is defined and it hit a wmm_ac_* rule with a valid value. Add a return to prevent incorrectly printing an error message and returning a non-zero exit code. Signed-off-by: Sujay Patwardhan --- diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index 2f45bdf53..0467af9a9 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -5140,6 +5140,7 @@ int wpa_config_process_global(struct wpa_config *config, char *pos, int line) "AC item", line); return -1; } + return ret; } #endif /* CONFIG_AP */ if (line < 0)