Add missing check for unlocked state.

This commit is contained in:
Michael Lotz
2013-03-05 11:05:02 -05:00
committed by Ryan Leavengood
parent d3b8b801a8
commit c5469c3939
+3
View File
@@ -171,6 +171,9 @@ status_t
Keyring::GetNextApplication(uint32& cookie, BString& signature,
BString& path)
{
if (!fUnlocked)
return B_NOT_ALLOWED;
char* nameFound = NULL;
status_t result = fApplications.GetInfo(B_MESSAGE_TYPE, cookie++,
&nameFound, NULL);