diff --git a/src/eap_peer/eap_wsc.c b/src/eap_peer/eap_wsc.c index d007a5708..f3581560e 100644 --- a/src/eap_peer/eap_wsc.c +++ b/src/eap_peer/eap_wsc.c @@ -194,7 +194,8 @@ static void * eap_wsc_init(struct eap_sm *sm) cfg.pin = dev_pw; 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_len = 0; nfc = 1;