Skip to content

Commit 8b70d33

Browse files
committed
Postfix for CORE-6450
1 parent ad68b60 commit 8b70d33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/auth/SecDbCache.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ void PluginDatabases::getInstance(IPluginConfig* pluginConfig, CachedSecurityDat
7676
if (secDbName == dbArray[i]->secureDbName)
7777
{
7878
CachedSecurityDatabase* fromCache = dbArray[i];
79-
if (fromCache->secDb->test())
79+
// if element is just created or test passed we can use it
80+
if ((!fromCache->secDb) || fromCache->secDb->test())
8081
{
8182
instance.set(fromCache);
8283
break;

0 commit comments

Comments
 (0)