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

Avoid problems in case of buggy config with >1 Loopback in Providers

This commit is contained in:
AlexPeshkoff 2021-05-04 14:50:09 +03:00
parent 7d787e50df
commit 61e1b76abb

View File

@ -183,13 +183,12 @@ PathName ParsedList::getNonLoopbackProviders(const PathName& aliasDb)
PathName providers(config->getPlugins(IPluginManager::TYPE_PROVIDER));
Auth::ParsedList list(providers);
for (unsigned n = 0; n < list.getCount(); ++n)
for (unsigned n = 0; n < list.getCount();)
{
if (list[n] == "Loopback")
{
list.remove(n);
break;
}
else
++n;
}
list.makeList(providers);
providers.insert(0, "Providers=");