Server/Shadow: Fix Authentication in shadow_client.c.

Currently if username or password is not set, the authentication is always failed because the authentication callback is never tried.
Fix to always give a chance to try the subsystem authentication callback even if username / password is not set.
This commit is contained in:
zihao.jiang 2015-10-02 16:09:12 +08:00
parent 6d810a5d78
commit 50e5837c0f

View File

@ -239,7 +239,7 @@ BOOL shadow_client_post_connect(freerdp_peer* peer)
if (settings->Username && settings->Password)
settings->AutoLogonEnabled = TRUE;
if (settings->AutoLogonEnabled && server->authentication)
if (server->authentication)
{
if (subsystem->Authenticate)
{