mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-30 00:34:03 -05:00
WPS: Fix wps_reg nfc-pw option
Commit ffdaa05a6b
added support for using
NFC password token from an AP. However, it had a bug that prevented the
wpa_supplicant wps_reg command from being used with "nfc-pw" as the PIN
value. Fix string comparison to handle this correctly.
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
7b44ff2c21
commit
38a5ad6728
@ -194,7 +194,8 @@ static void * eap_wsc_init(struct eap_sm *sm)
|
|||||||
cfg.pin = dev_pw;
|
cfg.pin = dev_pw;
|
||||||
cfg.pin_len /= 2;
|
cfg.pin_len /= 2;
|
||||||
}
|
}
|
||||||
if (cfg.pin_len == 6 && os_strncmp(pos, "nfc-pw", 6) == 0) {
|
if (cfg.pin_len == 6 &&
|
||||||
|
os_strncmp((const char *) cfg.pin, "nfc-pw", 6) == 0) {
|
||||||
cfg.pin = NULL;
|
cfg.pin = NULL;
|
||||||
cfg.pin_len = 0;
|
cfg.pin_len = 0;
|
||||||
nfc = 1;
|
nfc = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user