]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Don't return an error when successfully parsing WMM rules
authorSujay Patwardhan <sujay@eero.com>
Mon, 26 Aug 2019 18:35:38 +0000 (11:35 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 13 Sep 2019 13:35:16 +0000 (16:35 +0300)
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 <sujay@eero.com>
wpa_supplicant/config.c

index 2f45bdf5394cd3e19dac96b15053bdd966fc2b1f..0467af9a9e9d34e6863e8bf04975b9ebd72193bf 100644 (file)
@@ -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)