[PATCH] wpa_supplicant: Don't return an error when successfully parsing wmm rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The config file parser previously would fall through into an error if CONFIG_AP is defined and it hit a wmm_ac_* rule. This commit adds a return to prevent incorrectly printing an error message and returning a non-zero exit code.

Signed-off-by: Sujay Patwardhan <sujay@xxxxxxxx>
---
 wpa_supplicant/config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 7a62f96..8e94e94 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -4987,6 +4987,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)
-- 
2.7.4
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux