8
0
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:
hvlad 2011-06-07 12:59:52 +00:00
parent 9e04cf6396
commit e6329b0663
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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;