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:
parent
7d787e50df
commit
61e1b76abb
@ -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=");
|
||||
|
Loading…
Reference in New Issue
Block a user