mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:03:03 +01:00
Fixed non-Windows builds
This commit is contained in:
parent
29197adf31
commit
3092eee7e3
@ -7408,8 +7408,11 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
|
||||
|
||||
bool needFile = !(flags & ANALYZE_EMP_NAME);
|
||||
const PathName save_attach_name(attach_name);
|
||||
|
||||
#ifdef TRUSTED_AUTH
|
||||
bool legacySSP = false;
|
||||
Auth::setLegacySSP(legacySSP);
|
||||
#endif
|
||||
|
||||
while (true)
|
||||
{
|
||||
@ -7505,6 +7508,7 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
|
||||
}
|
||||
catch (const Exception&)
|
||||
{
|
||||
#ifdef TRUSTED_AUTH
|
||||
const char* const pluginName = cBlock.plugins.name();
|
||||
if (legacySSP || fb_utils::stricmp(pluginName, "WIN_SSPI") != 0)
|
||||
throw;
|
||||
@ -7515,6 +7519,9 @@ static rem_port* analyze(ClntAuthBlock& cBlock, PathName& attach_name, unsigned
|
||||
attach_name = save_attach_name;
|
||||
|
||||
cBlock.plugins.set(pluginName);
|
||||
#else
|
||||
throw;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user