Bugzilla Bug 341590: in FIPS mode, softoken should report the more serious

fatalError condition before the !isLoggedIn condition. r=nelson.
This commit is contained in:
wtchang%redhat.com 2006-06-15 23:55:59 +00:00
Родитель 51019ca217
Коммит d3ad378479
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -204,10 +204,10 @@ static CK_RV sftk_newPinCheck(CK_CHAR_PTR pPin, CK_ULONG ulPinLen) {
/* FIPS required checks before any useful cryptographic services */
static CK_RV sftk_fipsCheck(void) {
if (isLoggedIn != PR_TRUE)
return CKR_USER_NOT_LOGGED_IN;
if (fatalError)
return CKR_DEVICE_ERROR;
if (!isLoggedIn)
return CKR_USER_NOT_LOGGED_IN;
return CKR_OK;
}