Prevent observation of PW3 emptiness

This commit is contained in:
NIIBE Yutaka
2011-05-10 09:11:40 +09:00
parent a9ea672cf3
commit 79c9ad9fd4
5 changed files with 73 additions and 23 deletions

View File

@@ -537,7 +537,7 @@ cmd_reset_user_password (void)
newpw = pw;
sha1 (newpw, newpw_len, new_ks);
new_ks0[0] = newpw_len;
r = gpg_change_keystring (BY_ADMIN, old_ks, BY_USER, new_ks);
r = gpg_change_keystring (admin_authorized, old_ks, BY_USER, new_ks);
if (r < -2)
{
DEBUG_INFO ("memory error.\r\n");