8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 04:43:03 +01:00

Postfix for CORE-6450

This commit is contained in:
AlexPeshkoff 2020-11-20 13:03:30 +03:00
parent ad68b60aca
commit 8b70d337e0

View File

@ -76,7 +76,8 @@ void PluginDatabases::getInstance(IPluginConfig* pluginConfig, CachedSecurityDat
if (secDbName == dbArray[i]->secureDbName)
{
CachedSecurityDatabase* fromCache = dbArray[i];
if (fromCache->secDb->test())
// if element is just created or test passed we can use it
if ((!fromCache->secDb) || fromCache->secDb->test())
{
instance.set(fromCache);
break;