mirror of https://github.com/FreeRDP/FreeRDP
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:
commit
7b7bea276c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue