Add missing check for unlocked state.
This commit is contained in:
committed by
Ryan Leavengood
parent
d3b8b801a8
commit
c5469c3939
@@ -171,6 +171,9 @@ status_t
|
|||||||
Keyring::GetNextApplication(uint32& cookie, BString& signature,
|
Keyring::GetNextApplication(uint32& cookie, BString& signature,
|
||||||
BString& path)
|
BString& path)
|
||||||
{
|
{
|
||||||
|
if (!fUnlocked)
|
||||||
|
return B_NOT_ALLOWED;
|
||||||
|
|
||||||
char* nameFound = NULL;
|
char* nameFound = NULL;
|
||||||
status_t result = fApplications.GetInfo(B_MESSAGE_TYPE, cookie++,
|
status_t result = fApplications.GetInfo(B_MESSAGE_TYPE, cookie++,
|
||||||
&nameFound, NULL);
|
&nameFound, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user