mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
wifisim:Modify the problem of password verification.
Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
@@ -747,7 +747,7 @@ static int verify_password(FAR struct wifi_sim_s *sta,
|
|||||||
{
|
{
|
||||||
ret = OK;
|
ret = OK;
|
||||||
}
|
}
|
||||||
else if (!memcmp(sta->password, bss->password, strlen(sta->password)))
|
else if (!strncmp(sta->password, bss->password, sizeof(sta->password)))
|
||||||
{
|
{
|
||||||
ret = OK;
|
ret = OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user