wifisim:Modify the problem of password verification.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
This commit is contained in:
liqinhui 2024-01-03 11:14:42 +08:00 committed by Xiang Xiao
parent 2e9f00d0db
commit 10eaf1eafe
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ static int verify_password(FAR struct wifi_sim_s *sta,
{
ret = OK;
}
else if (!memcmp(sta->password, bss->password, strlen(sta->password)))
else if (!strncmp(sta->password, bss->password, sizeof(sta->password)))
{
ret = OK;
}