mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 02:03:04 +01:00
Make TA work with 2.1 clients and not crash. Thanks to Alex.
This commit is contained in:
parent
9e04cf6396
commit
e6329b0663
@ -80,7 +80,7 @@ bool legacy(const char* nm)
|
||||
const char* legacyTrusted = "WIN_SSPI";
|
||||
const unsigned short legLength = strlen(legacyTrusted);
|
||||
|
||||
return strlen(nm) == legLength && memcmp(legacyTrusted, nm, legLength) == 0;
|
||||
return strlen(nm) == legLength && strnicmp(legacyTrusted, nm, legLength) == 0;
|
||||
}
|
||||
|
||||
} // namespace Auth
|
||||
|
@ -288,7 +288,6 @@ public:
|
||||
case Auth::AUTH_MORE_DATA:
|
||||
if (port->port_protocol < PROTOCOL_VERSION11)
|
||||
{
|
||||
authServer->release();
|
||||
authServer = NULL;
|
||||
working = false;
|
||||
break;
|
||||
@ -332,7 +331,6 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
authServer->release();
|
||||
authServer = NULL;
|
||||
working = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user