Merge pull request #10327 from mfleisz/fix/auth-last-error

core: Fix handling of logon errors during nla_client_begin
This commit is contained in:
akallabeth 2024-07-01 17:16:38 +02:00 committed by GitHub
commit 7b7bea276c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -505,6 +505,16 @@ int nla_client_begin(rdpNla* nla)
nla_set_state(nla, NLA_STATE_FINAL);
break;
default:
switch (credssp_auth_sspi_error(nla->auth))
{
case SEC_E_LOGON_DENIED:
case SEC_E_NO_CREDENTIALS:
freerdp_set_last_error_log(nla->rdpcontext,
FREERDP_ERROR_CONNECT_LOGON_FAILURE);
break;
default:
break;
}
return -1;
}