From 21dc1627f6e6b26986a70e81ffb5f08132656b09 Mon Sep 17 00:00:00 2001 From: Sujay Patwardhan Date: Mon, 26 Aug 2019 11:35:38 -0700 Subject: [PATCH] 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 --- wpa_supplicant/config.c | 1 + 1 file changed, 1 insertion(+) 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)