From: zihao.jiang Date: Fri, 2 Oct 2015 08:09:12 +0000 (+0800) Subject: Server/Shadow: Fix Authentication in shadow_client.c. X-Git-Tag: 2.0.0-beta1+android10~412^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50e5837c0fd8aafa7d4bb5527c46bf379866fcd0;p=platform%2Fupstream%2Ffreerdp.git 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. --- diff --git a/server/shadow/shadow_client.c b/server/shadow/shadow_client.c index fc141fb..258ba35 100644 --- a/server/shadow/shadow_client.c +++ b/server/shadow/shadow_client.c @@ -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) {