mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
WPS: Allow config_methods to be cleared with an empty string
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8aab52461d
commit
1067f49520
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user