Server/Shadow: Fix Authentication in shadow_client.c.
authorzihao.jiang <zihao.jiang@yahoo.com>
Fri, 2 Oct 2015 08:09:12 +0000 (16:09 +0800)
committerzihao.jiang <zihao.jiang@yahoo.com>
Mon, 5 Oct 2015 14:34:58 +0000 (22:34 +0800)
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.

server/shadow/shadow_client.c

index fc141fb..258ba35 100644 (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)
                {