core: Propagate credssp error code by setting last error

This commit is contained in:
Martin Fleisz 2016-03-21 10:23:18 +01:00
parent 98528ea973
commit 34a7c1860d

View File

@ -573,7 +573,10 @@ int nla_client_authenticate(rdpNla* nla)
if (status < 0)
{
if (nla->errorCode)
{
WLog_ERR(TAG, "SPNEGO failed with NTSTATUS: %08X", nla->errorCode);
freerdp_set_last_error(nla->instance->context, nla->errorCode);
}
Stream_Free(s, TRUE);
return -1;