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

Make trusted auth works again.

To be reviewed by Alex.
This commit is contained in:
hvlad 2010-01-29 13:08:53 +00:00
parent 51d20b84f3
commit 3c20fd3e07
2 changed files with 3 additions and 4 deletions

View File

@ -388,7 +388,6 @@ Result WinSspiServerInstance::contAuthentication(WriterInterface* writerInterfac
{ {
sspiData.clear(); sspiData.clear();
sspiData.add(data, size); sspiData.add(data, size);
sspi.accept(sspiData);
if (!sspi.accept(sspiData)) if (!sspi.accept(sspiData))
{ {
@ -452,8 +451,8 @@ Result WinSspiClientInstance::contAuthentication(const unsigned char* data, unsi
{ {
sspiData.clear(); sspiData.clear();
sspiData.add(data, size); sspiData.add(data, size);
sspi.accept(sspiData);
if (!sspi.accept(sspiData)) if (!sspi.request(sspiData))
{ {
return AUTH_FAILED; return AUTH_FAILED;
} }

View File

@ -5729,7 +5729,7 @@ static bool init(ISC_STATUS* user_status,
} }
bool contFlag = true; bool contFlag = true;
if (n && n->cstr_length) if (!n || !n->cstr_length)
{ {
// switch to other plugin // switch to other plugin
currentInstance.reset(0); currentInstance.reset(0);