fix resetting ADMIN pass phrase in admi-less mode

This commit is contained in:
NIIBE Yutaka
2012-07-05 08:56:42 +09:00
parent ffba0e0158
commit e78206e1cd
4 changed files with 23 additions and 1 deletions

View File

@@ -959,7 +959,7 @@ proc_key_import (const uint8_t *data, int len)
ac_reset_pso_cds ();
ac_reset_other ();
if (keystring_admin == NULL)
if (admin_authorized == BY_USER)
ac_reset_admin ();
}