USB Reset handling

This commit is contained in:
NIIBE Yutaka
2015-09-09 18:49:01 +09:00
parent 748c3cac6c
commit f505dea314
17 changed files with 166 additions and 142 deletions

View File

@@ -169,7 +169,7 @@ verify_admin_00 (const uint8_t *pw, int buf_len, int pw_len_known,
pw_len = ks[0] & PW_LEN_MASK;
salt = KS_GET_SALT (ks);
salt_len = SALT_SIZE;
if ((pw_len_known >= 0 && pw_len_known != pw_len) || buf_len < pw_len)
return -1;