aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-09-05 18:49:38 (GMT)
committerJouni Malinen <j@w1.fi>2015-09-05 18:49:38 (GMT)
commit1067f495202b3c3aafc85f808de91faeb7a55478 (patch)
tree25b4f0fe66a5d2eef91724623dc9b49c4e9a065d /src/wps
parent8aab52461d47ca9b1a9bb20b212a28f852bff822 (diff)
downloadhostap-1067f495202b3c3aafc85f808de91faeb7a55478.zip
hostap-1067f495202b3c3aafc85f808de91faeb7a55478.tar.gz
hostap-1067f495202b3c3aafc85f808de91faeb7a55478.tar.bz2
WPS: Allow config_methods to be cleared with an empty string
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/wps')
-rw-r--r--src/wps/wps_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wps/wps_common.c b/src/wps/wps_common.c
index 16d466e..88f85fe 100644
--- a/src/wps/wps_common.c
+++ b/src/wps/wps_common.c
@@ -528,7 +528,7 @@ u16 wps_config_methods_str2bin(const char *str)
{
u16 methods = 0;
- if (str == NULL) {
+ if (str == NULL || str[0] == '\0') {
/* Default to enabling methods based on build configuration */
methods |= WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD;
methods |= WPS_CONFIG_VIRT_DISPLAY;